plan9: restore CLOCK_PROCESS_CPUTIME_ID support

This commit is contained in:
Noam Preil
2025-12-12 09:35:37 +00:00
parent 4a9c9ebefc
commit 2de6d26a46
-2
View File
@@ -963,10 +963,8 @@ int janet_gettime(struct timespec *spec, enum JanetTimeSource source) {
cid = CLOCK_REALTIME;
} else if (source == JANET_TIME_MONOTONIC) {
cid = CLOCK_MONOTONIC;
#ifndef JANET_PLAN9
} else if (source == JANET_TIME_CPUTIME) {
cid = CLOCK_PROCESS_CPUTIME_ID;
#endif
}
return clock_gettime(cid, spec);
}