(trunk libT) #4153 "Protect against non-monotonic time in libutp" -- try again.

This commit is contained in:
Jordan Lee
2011-03-30 23:54:39 +00:00
parent 7aa90a3812
commit 38669a6c3b

View File

@@ -33,11 +33,6 @@ uint64 UTGetTickCount64()
return (uint64)GetTickCount();
}
uint32 UTP_GetMilliseconds()
{
return GetTickCount();
}
void Time_Initialize()
{
HMODULE kernel32 = GetModuleHandleA("kernel32.dll");
@@ -148,7 +143,7 @@ static uint64_t GetMicroseconds()
}
#endif //!__APPLE__
uint32 UTP_GetMilliseconds();
#endif //!WIN32
uint64 UTP_GetMicroseconds()
{
@@ -164,8 +159,6 @@ uint64 UTP_GetMicroseconds()
return now;
}
#endif //!WIN32
uint32 UTP_GetMilliseconds()
{
return UTP_GetMicroseconds() / 1000;