… | |
… | |
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] |