mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
(trunk libT) #4153 "Protect against non-monotonic time in libutp" -- try again.
This commit is contained in:
9
third-party/libutp/utp_utils.cpp
vendored
9
third-party/libutp/utp_utils.cpp
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user