We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
clock_boottime_or_monotonic()
1 parent 177ea92 commit 279089fCopy full SHA for 279089f
1 file changed
src/store.c
@@ -53,7 +53,7 @@ static int skip = 0;
53
double gettime_ns(void) {
54
struct timespec n;
55
56
- clock_gettime(CLOCK_MONOTONIC, &n);
+ clock_gettime(clock_boottime_or_monotonic(), &n);
57
58
return (n.tv_sec + (n.tv_nsec / (double) NSEC_PER_SEC));
59
}
0 commit comments