[Libevent-users] evtimer complains...

Phil Oleson oz at nixil.net
Sat Dec 9 19:54:10 EST 2006


Niels,

	I've taken a little time time to look through my issue with
evtimers.  Previously, Scott Lamb questioned my code using absolute
time with evtimers, but I see no problem with this.  It used to work
pre-1.2, and I've tracked the issue down to gettime() using
CLOCK_MONOTONIC rather than CLOCK_REALTIME. When I've hacked libevent to
use CLOCK_REALTIME, my test code works.  To me it seems that using
CLOCK_MONOTONIC causes issues with calls to gettimeofday.  Was there
any particular reason to have CLOCK_MONOTONIC as the arg to
clock_gettime()?  I would just like to understand this better before
I rewrite my application.

	-Phil.



More information about the Libevent-users mailing list