refactor: change CLOCK_REALTIME to CLOCK_MONOTONIC
@@ -204,9 +204,9 @@ uint64_t
orka_timestamp_ms()
{
struct timespec t;
- clock_gettime(CLOCK_REALTIME, &t);
+ clock_gettime(CLOCK_MONOTONIC, &t);
- return (uint64_t)t.tv_sec*1000 + (uint64_t)t.tv_nsec/1000000;
+ return t.tv_sec*1000 + t.tv_nsec/1000000;
}
void
