Network/ENetHost: Fix service time precision

This commit is contained in:
Lynix
2017-11-20 21:04:50 +01:00
parent 7eff1f34f1
commit f2506ee918
3 changed files with 14 additions and 5 deletions

View File

@@ -73,6 +73,12 @@ namespace Nz
return ref;
}
inline void ENetHost::UpdateServiceTime()
{
// Compute service time as microseconds for extra precision
m_serviceTime = static_cast<UInt32>(GetElapsedMicroseconds() / 1000);
}
}
#include <Nazara/Network/DebugOff.hpp>