Re: [Libevent-users] Strange timeout scheduling in 1.4

2011-07-28 Thread Leonid Evdokimov
On Wed, Jul 27, 2011 at 22:49, Nick Mathewson wrote: > so that your event is being scheduled relative to the time when > epoll returned, not quite relative to the time when event_add() is > called. Nick, thanks! That was exactly another pair of eyes I was looking for! I added relative delta betwe

Re: [Libevent-users] Strange timeout scheduling in 1.4

2011-07-28 Thread Nicholas Marriott
Interesting. We have seen problems in the past with gettimeofday() not being very deterministic on Linux, with occasional spikes in the time it takes, although I don't have the numbers to hand (50-100 microseconds or so are the numbers I remember offhand). If this is to be used as a basis for wha