diff options
-rw-r--r-- | lib/thread.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/thread.c b/lib/thread.c index e89af541..c6ee8964 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -31,7 +31,7 @@ #include "sigevent.h" /* Recent absolute time of day */ -struct timeval recent_time; +static struct timeval recent_time; static struct timeval last_recent_time; /* Relative time, since startup */ static struct timeval relative_time; @@ -1028,14 +1028,6 @@ thread_getrusage (RUSAGE_T *r) getrusage(RUSAGE_SELF, &(r->cpu)); #endif r->real = relative_time; - -#ifdef HAVE_CLOCK_MONOTONIC - /* quagga_get_relative() only updates recent_time if gettimeofday - * based, not when using CLOCK_MONOTONIC. As we export recent_time - * and guarantee to update it before threads are run... - */ - quagga_gettimeofday(&recent_time); -#endif /* HAVE_CLOCK_MONOTONIC */ } /* We check thread consumed time. If the system has getrusage, we'll |