From 4d842bfffe9d21022fb0e6ea51d3a5eedb39e69e Mon Sep 17 00:00:00 2001
From: root
Libev represents time as a single floating point number. This type is +
Libev represents time as a single floating point number, representing the
+(fractional) number of seconds since the (POSIX) epoch (somewhere near
+the beginning of 1970, details are complicated, don't ask). This type is
called ev_tstamp
, which is what you should use too. It usually aliases
to the double type in C.
Periodic watchers are also timers of a kind, but they are very versatile (and unfortunately a bit complex).
Unlike ev_timer's, they are not based on real time (or relative time) diff --git a/ev.pod b/ev.pod index 96a6272..075d672 100644 --- a/ev.pod +++ b/ev.pod @@ -469,7 +469,7 @@ the timer, and again will automatically restart it if need be. =back -=head2 ev_periodic +=head2 ev_periodic - to cron or not to cron it Periodic watchers are also timers of a kind, but they are very versatile (and unfortunately a bit complex). diff --git a/event.c b/event.c index ecad9a1..b24d702 100644 --- a/event.c +++ b/event.c @@ -108,7 +108,7 @@ void event_base_free (struct event_base *base) dLOOPbase; #if EV_MULTIPLICITY - if (ev_default_loop (EVMETHOD_AUTO) != loop) + if (ev_default_loop (EVFLAG_AUTO) != loop) ev_loop_destroy (loop); #endif } -- cgit v1.2.3