Index: corelib/timer.c =================================================================== --- corelib/timer.c (revision 1878) +++ corelib/timer.c (working copy) @@ -69,8 +69,10 @@ t->interval = interval; /* Check if the timer has a good enough resolution */ +#ifdef CLOCK_MONOTONIC st = clock_getres(CLOCK_MONOTONIC, &res); if (st == -1) +#endif st = clock_getres(CLOCK_REALTIME, &res); if (st == -1) { opbx_log(LOG_WARNING, "Couldn't get resolution of "