--- EV/README 2015/06/20 11:11:01 1.43 +++ EV/README 2015/07/13 19:47:53 1.44 @@ -503,11 +503,12 @@ The "timer_ns" variant doesn't start (activate) the newly created watcher. - $w->set ($after, $repeat) + $w->set ($after, $repeat = 0) Reconfigures the watcher, see the constructor above for details. Can be called at any time. $w->again + $w->again ($repeat) Similar to the "start" method, but has special semantics for repeating timers: @@ -526,6 +527,12 @@ and $repeat, and then, in the read/write watcher, run the "again" method on the timeout. + If called with a $repeat argument, then it uses this a timer repeat + value. + + $after = $w->remaining + Calculates and returns the remaining time till the timer will fire. + PERIODIC WATCHERS - to cron or not to cron? $w = EV::periodic $at, $interval, $reschedule_cb, $callback $w = EV::periodic_ns $at, $interval, $reschedule_cb, $callback