ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.pod
(Generate patch)

Comparing libev/ev.pod (file contents):
Revision 1.257 by root, Wed Jul 15 16:08:24 2009 UTC vs.
Revision 1.258 by root, Wed Jul 15 16:58:53 2009 UTC

1820C<repeat> value), or reset the running timer to the C<repeat> value. 1820C<repeat> value), or reset the running timer to the C<repeat> value.
1821 1821
1822This sounds a bit complicated, see L<Be smart about timeouts>, above, for a 1822This sounds a bit complicated, see L<Be smart about timeouts>, above, for a
1823usage example. 1823usage example.
1824 1824
1825=item ev_timer_remaining (loop, ev_timer *)
1826
1827Returns the remaining time until a timer fires. If the timer is active,
1828then this time is relative to the current event loop time, otherwise it's
1829the timeout value currently configured.
1830
1831That is, after an C<ev_timer_set (w, 5, 7)>, C<ev_timer_remaining> returns
1832C<5>. When the timer is started and one second passes, C<ev_timer_remain>
1833will return C<4>. When the timer expires and is restarted, it will return
1834roughly C<7> (likely slightly less as callback invocation takes some time,
1835too), and so on.
1836
1825=item ev_tstamp repeat [read-write] 1837=item ev_tstamp repeat [read-write]
1826 1838
1827The current C<repeat> value. Will be used each time the watcher times out 1839The current C<repeat> value. Will be used each time the watcher times out
1828or C<ev_timer_again> is called, and determines the next timeout (if any), 1840or C<ev_timer_again> is called, and determines the next timeout (if any),
1829which is also when any modifications are taken into account. 1841which is also when any modifications are taken into account.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines