/* Global state */
+#ifdef HAVE_ANY_MONOTONIC
static int use_monotonic;
+#endif
static void *event_self_cbarg_ptr_ = NULL;
return (0);
}
+#ifdef HAVE_ANY_MONOTONIC
if (use_monotonic) {
#if defined(EVENT__HAVE_CLOCK_GETTIME) && defined(CLOCK_MONOTONIC)
struct timespec ts;
return (0);
}
+#endif
return (evutil_gettimeofday(tp, NULL));
}
struct timeval off;
int i;
+#ifdef HAVE_ANY_MONOTONIC
if (use_monotonic)
return;
+#endif
/* Check if time is running backwards */
gettime(base, tv);