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

Comparing EV/EV.pm (file contents):
Revision 1.52 by root, Sat Nov 24 16:20:30 2007 UTC vs.
Revision 1.53 by root, Sat Nov 24 16:57:30 2007 UTC

310 310
311=item $w = EV::timer $after, $repeat, $callback 311=item $w = EV::timer $after, $repeat, $callback
312 312
313=item $w = EV::timer_ns $after, $repeat, $callback 313=item $w = EV::timer_ns $after, $repeat, $callback
314 314
315Calls the callback after C<$after> seconds. If C<$repeat> is non-zero, 315Calls the callback after C<$after> seconds (which may be fractional). If
316the timer will be restarted (with the $repeat value as $after) after the 316C<$repeat> is non-zero, the timer will be restarted (with the $repeat
317callback returns. 317value as $after) after the callback returns.
318 318
319This means that the callback would be called roughly after C<$after> 319This means that the callback would be called roughly after C<$after>
320seconds, and then every C<$repeat> seconds. The timer does his best not 320seconds, and then every C<$repeat> seconds. The timer does his best not
321to drift, but it will not invoke the timer more often then once per event 321to drift, but it will not invoke the timer more often then once per event
322loop iteration, and might drift in other cases. If that isn't acceptable, 322loop iteration, and might drift in other cases. If that isn't acceptable,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines