summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2009-12-26 09:21:54 +0000
committerroot <root>2009-12-26 09:21:54 +0000
commit48be09ae804dedbb4c1049607eac8e0083cdc60e (patch)
tree8690bf72daafd4e282bfd6830c045cd97fc21968
parent281663f4e9b5029ab9cd09cf4754de3165138ab7 (diff)
*** empty log message ***
-rw-r--r--Changes1
-rw-r--r--ev++.h5
-rw-r--r--ev.pod2
3 files changed, 7 insertions, 1 deletions
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<ev_timer *>(this));
}
+
+ ev_tstamp remaining ()
+ {
+ return ev_timer_remaining (EV_A_ static_cast<ev_timer *>(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<repeat> value), or reset the running timer to the C<repeat> value.
This sounds a bit complicated, see L<Be smart about timeouts>, 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