mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-14 06:49:35 -04:00
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:
parent
4560b31bdf
commit
2a83ecc849
2
event.c
2
event.c
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user