… | |
… | |
1867 | Returns the remaining time until a timer fires. If the timer is active, |
1867 | Returns the remaining time until a timer fires. If the timer is active, |
1868 | then this time is relative to the current event loop time, otherwise it's |
1868 | then this time is relative to the current event loop time, otherwise it's |
1869 | the timeout value currently configured. |
1869 | the timeout value currently configured. |
1870 | |
1870 | |
1871 | That is, after an C<ev_timer_set (w, 5, 7)>, C<ev_timer_remaining> returns |
1871 | That is, after an C<ev_timer_set (w, 5, 7)>, C<ev_timer_remaining> returns |
1872 | C<5>. When the timer is started and one second passes, C<ev_timer_remain> |
1872 | C<5>. When the timer is started and one second passes, C<ev_timer_remaining> |
1873 | will return C<4>. When the timer expires and is restarted, it will return |
1873 | will return C<4>. When the timer expires and is restarted, it will return |
1874 | roughly C<7> (likely slightly less as callback invocation takes some time, |
1874 | roughly C<7> (likely slightly less as callback invocation takes some time, |
1875 | too), and so on. |
1875 | too), and so on. |
1876 | |
1876 | |
1877 | =item ev_tstamp repeat [read-write] |
1877 | =item ev_tstamp repeat [read-write] |
… | |
… | |
3451 | Erkki Seppala has written Ocaml bindings for libev, to be found at |
3451 | Erkki Seppala has written Ocaml bindings for libev, to be found at |
3452 | L<http://modeemi.cs.tut.fi/~flux/software/ocaml-ev/>. |
3452 | L<http://modeemi.cs.tut.fi/~flux/software/ocaml-ev/>. |
3453 | |
3453 | |
3454 | =item Lua |
3454 | =item Lua |
3455 | |
3455 | |
3456 | Brian Maher has written a partial interface to libev |
3456 | Brian Maher has written a partial interface to libev for lua (at the |
3457 | for lua (only C<ev_io> and C<ev_timer>), to be found at |
3457 | time of this writing, only C<ev_io> and C<ev_timer>), to be found at |
3458 | L<http://github.com/brimworks/lua-ev>. |
3458 | L<http://github.com/brimworks/lua-ev>. |
3459 | |
3459 | |
3460 | =back |
3460 | =back |
3461 | |
3461 | |
3462 | |
3462 | |