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

Comparing libev/ev.pod (file contents):
Revision 1.279 by root, Mon Feb 15 05:15:55 2010 UTC vs.
Revision 1.280 by sf-exg, Tue Feb 16 12:17:57 2010 UTC

1867Returns the remaining time until a timer fires. If the timer is active, 1867Returns the remaining time until a timer fires. If the timer is active,
1868then this time is relative to the current event loop time, otherwise it's 1868then this time is relative to the current event loop time, otherwise it's
1869the timeout value currently configured. 1869the timeout value currently configured.
1870 1870
1871That is, after an C<ev_timer_set (w, 5, 7)>, C<ev_timer_remaining> returns 1871That is, after an C<ev_timer_set (w, 5, 7)>, C<ev_timer_remaining> returns
1872C<5>. When the timer is started and one second passes, C<ev_timer_remain> 1872C<5>. When the timer is started and one second passes, C<ev_timer_remaining>
1873will return C<4>. When the timer expires and is restarted, it will return 1873will return C<4>. When the timer expires and is restarted, it will return
1874roughly C<7> (likely slightly less as callback invocation takes some time, 1874roughly C<7> (likely slightly less as callback invocation takes some time,
1875too), and so on. 1875too), and so on.
1876 1876
1877=item ev_tstamp repeat [read-write] 1877=item ev_tstamp repeat [read-write]

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines