ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/EV.pm
(Generate patch)

Comparing EV/EV.pm (file contents):
Revision 1.20 by root, Thu Nov 1 17:17:32 2007 UTC vs.
Revision 1.21 by root, Thu Nov 1 17:20:25 2007 UTC

291EV::periodic will try to run the callback at the next possible time where 291EV::periodic will try to run the callback at the next possible time where
292C<$time = $at (mod $interval)>, regardless of any time jumps. 292C<$time = $at (mod $interval)>, regardless of any time jumps.
293 293
294This periodic timer is based on "wallclock time", that is, if the clock 294This periodic timer is based on "wallclock time", that is, if the clock
295changes (C<ntp>, C<date -s> etc.), then the timer will nevertheless run at 295changes (C<ntp>, C<date -s> etc.), then the timer will nevertheless run at
296the specified time. 296the specified time. This means it will never drift (it might jitter, but
297it will not drift).
297 298
298The C<periodic_ns> variant doesn't start (activate) the newly created watcher. 299The C<periodic_ns> variant doesn't start (activate) the newly created watcher.
299 300
300=item $w->set ($at, $interval) 301=item $w->set ($at, $interval)
301 302

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines