diff options
author | 3gg <3gg@shellblade.net> | 2025-02-01 11:12:17 -0800 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2025-02-01 11:12:17 -0800 |
commit | 1cb585ea456d61213ec2f2faa08bfd6a4fa39228 (patch) | |
tree | 80d5456737969363d6a13ab3595413084a90954f | |
parent | 12b8d218d93a487b478f66a2bc9cb6ef6458dd63 (diff) |
-rw-r--r-- | timer/src/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/timer/src/timer.c b/timer/src/timer.c index da3485b..2b34851 100644 --- a/timer/src/timer.c +++ b/timer/src/timer.c | |||
@@ -49,7 +49,7 @@ time_point time_now(void) { | |||
49 | #ifdef _WIN32 | 49 | #ifdef _WIN32 |
50 | QueryPerformanceCounter((LARGE_INTEGER*)&t); | 50 | QueryPerformanceCounter((LARGE_INTEGER*)&t); |
51 | #else | 51 | #else |
52 | clock_gettime(CLOCK_REALTIME, &t); | 52 | clock_gettime(CLOCK_MONOTONIC_RAW, &t); |
53 | #endif | 53 | #endif |
54 | return t; | 54 | return t; |
55 | } | 55 | } |