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

Comparing libev/ev.pod (file contents):
Revision 1.278 by root, Thu Dec 31 06:59:47 2009 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]
3451Erkki Seppala has written Ocaml bindings for libev, to be found at 3451Erkki Seppala has written Ocaml bindings for libev, to be found at
3452L<http://modeemi.cs.tut.fi/~flux/software/ocaml-ev/>. 3452L<http://modeemi.cs.tut.fi/~flux/software/ocaml-ev/>.
3453 3453
3454=item Lua 3454=item Lua
3455 3455
3456Brian Maher has written a partial interface to libev 3456Brian Maher has written a partial interface to libev for lua (at the
3457for lua (only C<ev_io> and C<ev_timer>), to be found at 3457time of this writing, only C<ev_io> and C<ev_timer>), to be found at
3458L<http://github.com/brimworks/lua-ev>. 3458L<http://github.com/brimworks/lua-ev>.
3459 3459
3460=back 3460=back
3461 3461
3462 3462

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines