0
0
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:
ruti 2025-02-01 16:37:53 +03:00
parent 5940d707e6
commit 9b9cea1bd2

View File

@ -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;