Replace float/UInt64 durations by a more precise Time class (#388)
Improve Clock class with atomic RestartIfOver method and allows to choose required precision
This commit is contained in:
@@ -1245,7 +1245,7 @@ namespace Nz
|
||||
|
||||
void ENetHost::ThrottleBandwidth()
|
||||
{
|
||||
UInt32 currentTime = UInt32(GetElapsedMilliseconds());
|
||||
UInt32 currentTime = UInt32(GetElapsedMilliseconds().AsMilliseconds());
|
||||
UInt32 elapsedTime = currentTime - m_bandwidthThrottleEpoch;
|
||||
|
||||
if (elapsedTime < ENetConstants::ENetHost_BandwidthThrottleInterval)
|
||||
|
||||
Reference in New Issue
Block a user