mirror of
https://github.com/janet-lang/janet
synced 2024-12-26 00:10:27 +00:00
os/time and janet_gettime now use CLOCK_MONOTONIC instead of CLOCK_REALTIM, this matches the description from the documentation of os/clock. Fixes issue #1144
This commit is contained in:
parent
fc8c6a429e
commit
61132d6c40
@ -902,7 +902,7 @@ int janet_gettime(struct timespec *spec) {
|
||||
}
|
||||
#else
|
||||
int janet_gettime(struct timespec *spec) {
|
||||
return clock_gettime(CLOCK_REALTIME, spec);
|
||||
return clock_gettime(CLOCK_MONOTONIC, spec);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user