From: Nick Mathewson Date: Tue, 8 Mar 2011 04:01:54 +0000 (-0500) Subject: In the 2.1 branch, let's try out lazy gettimeofday/clock_gettime comparison X-Git-Tag: release-2.1.1-alpha~303 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a83ecc8496c1470c8a29fad5df1e89a9d1d9864;p=libevent In the 2.1 branch, let's try out lazy gettimeofday/clock_gettime comparison For now, we'll only check for gettimeofday jumps once every 5 seconds. Let's see how that works. This reverts commit 5209fadfd07af3f3379ac607582c37933b33e044. --- diff --git a/event.c b/event.c index 1173d037..1496e2be 100644 --- a/event.c +++ b/event.c @@ -333,7 +333,7 @@ detect_monotonic(void) /* How often (in seconds) do we check for changes in wall clock time relative * to monotonic time? Set this to -1 for 'never.' */ -#define CLOCK_SYNC_INTERVAL -1 +#define CLOCK_SYNC_INTERVAL 5 /** Set 'tp' to the current time according to 'base'. We must hold the lock * on 'base'. If there is a cached time, return it. Otherwise, use