From 48be09ae804dedbb4c1049607eac8e0083cdc60e Mon Sep 17 00:00:00 2001 From: root Date: Sat, 26 Dec 2009 09:21:54 +0000 Subject: *** empty log message *** --- Changes | 1 + ev++.h | 5 +++++ ev.pod | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index ae3447d..1509b84 100644 --- a/Changes +++ b/Changes @@ -21,6 +21,7 @@ TODO: somehow unblock procmask? - only replace ev_stat.prev when we detect an actual difference, so prev is (almost) always different to attr. this might have caused the probems with 04_stat.t. + - add ev::timer->remaining () method to C++ API. 3.8 Sun Aug 9 14:30:45 CEST 2009 - incompatible change: do not necessarily reset signal handler diff --git a/ev++.h b/ev++.h index fd2563f..73bcf32 100644 --- a/ev++.h +++ b/ev++.h @@ -644,6 +644,11 @@ namespace ev { { ev_timer_again (EV_A_ static_cast(this)); } + + ev_tstamp remaining () + { + return ev_timer_remaining (EV_A_ static_cast(this)); + } EV_END_WATCHER (timer, timer) #if EV_PERIODIC_ENABLE diff --git a/ev.pod b/ev.pod index 746220a..5e0a8e8 100644 --- a/ev.pod +++ b/ev.pod @@ -1856,7 +1856,7 @@ C value), or reset the running timer to the C value. This sounds a bit complicated, see L, above, for a usage example. -=item ev_timer_remaining (loop, ev_timer *) +=item ev_tstamp ev_timer_remaining (loop, ev_timer *) Returns the remaining time until a timer fires. If the timer is active, then this time is relative to the current event loop time, otherwise it's -- cgit v1.2.3