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.
This commit is contained in:
Nick Mathewson 2011-03-07 23:01:54 -05:00
parent 4560b31bdf
commit 2a83ecc849

View File

@ -333,7 +333,7 @@ detect_monotonic(void)
/* How often (in seconds) do we check for changes in wall clock time relative /* How often (in seconds) do we check for changes in wall clock time relative
* to monotonic time? Set this to -1 for 'never.' */ * 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 /** 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 * on 'base'. If there is a cached time, return it. Otherwise, use