if (!timespecisset(&ts_mono) || !timespecisset(&ts_real))
errx(1, "timespecisset");
- if (clock_gettime(CLOCK_MONOTONIC, &mono) == -1 ||
+ if (clock_gettime(CLOCK_MONOTONIC_RAW, &mono) == -1 ||
clock_gettime(CLOCK_REALTIME, &real) == -1)
err(1, "clock_gettime");
{
struct timespec mono, real, ts_mono, ts_real, timeout;
- if (clock_gettime(CLOCK_MONOTONIC, &mono) == -1 ||
+ if (clock_gettime(CLOCK_MONOTONIC_RAW, &mono) == -1 ||
clock_gettime(CLOCK_REALTIME, &real) == -1)
err(1, "clock_gettime");