summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2009-07-15 16:58:53 +0000
committerroot <root>2009-07-15 16:58:53 +0000
commit5c8cc800f487e020d33cd08727c442b6a8067d9d (patch)
tree96448386bbc5985c4bdd4e685abf06f27a89d401 /ev.c
parent2978dc2e820ccb62fe7f3b35a0672455e592017e (diff)
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ev.c b/ev.c
index a6f414f..eba23b6 100644
--- a/ev.c
+++ b/ev.c
@@ -2489,6 +2489,12 @@ ev_timer_again (EV_P_ ev_timer *w)
EV_FREQUENT_CHECK;
}
+ev_tstamp
+ev_timer_remaining (EV_P_ ev_timer *w)
+{
+ return ev_at (w) - (ev_is_active (w) ? mn_now : 0.);
+}
+
#if EV_PERIODIC_ENABLE
void noinline
ev_periodic_start (EV_P_ ev_periodic *w)