mirror of
https://github.com/transmission/transmission
synced 2025-02-07 06:54:40 +00:00
(trunk libT) #4153 "Protect against non-monotonic time in libutp" -- another attempt at getting it to compile on win32
This commit is contained in:
parent
4cf4000620
commit
7aa90a3812
1 changed files with 3 additions and 1 deletions
4
third-party/libutp/utp_utils.cpp
vendored
4
third-party/libutp/utp_utils.cpp
vendored
|
@ -148,7 +148,7 @@ static uint64_t GetMicroseconds()
|
|||
}
|
||||
#endif //!__APPLE__
|
||||
|
||||
#endif //!WIN32
|
||||
uint32 UTP_GetMilliseconds();
|
||||
|
||||
uint64 UTP_GetMicroseconds()
|
||||
{
|
||||
|
@ -164,6 +164,8 @@ uint64 UTP_GetMicroseconds()
|
|||
return now;
|
||||
}
|
||||
|
||||
#endif //!WIN32
|
||||
|
||||
uint32 UTP_GetMilliseconds()
|
||||
{
|
||||
return UTP_GetMicroseconds() / 1000;
|
||||
|
|
Loading…
Reference in a new issue