mirror of
https://github.com/janet-lang/janet
synced 2025-01-13 09:00:26 +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
|
#else
|
||||||
int janet_gettime(struct timespec *spec) {
|
int janet_gettime(struct timespec *spec) {
|
||||||
return clock_gettime(CLOCK_REALTIME, spec);
|
return clock_gettime(CLOCK_MONOTONIC, spec);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user