mirror of
https://github.com/hufrea/byedpi.git
synced 2025-07-05 05:24:08 +00:00
Dont use CLOCK_MONOTONIC_RAW
This commit is contained in:
parent
5940d707e6
commit
9b9cea1bd2
2
conev.c
2
conev.c
@ -224,7 +224,7 @@ static long time_ms(void)
|
|||||||
{
|
{
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
struct timespec t;
|
struct timespec t;
|
||||||
clock_gettime(CLOCK_MONOTONIC_RAW, &t);
|
clock_gettime(CLOCK_MONOTONIC, &t);
|
||||||
return t.tv_sec * 1e3 + (t.tv_nsec / 1e6);
|
return t.tv_sec * 1e3 + (t.tv_nsec / 1e6);
|
||||||
#else
|
#else
|
||||||
FILETIME st;
|
FILETIME st;
|
||||||
|
Loading…
Reference in New Issue
Block a user