From e30b6ac5d1127c368184232dc749cef28d0cbb6c Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 13 Jul 2012 12:21:04 +0200 Subject: timer: Add function osmo_timer_remaining() to determine remainign time --- include/osmocom/core/timer.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/osmocom') diff --git a/include/osmocom/core/timer.h b/include/osmocom/core/timer.h index ecb50017..d37af806 100644 --- a/include/osmocom/core/timer.h +++ b/include/osmocom/core/timer.h @@ -73,7 +73,9 @@ void osmo_timer_del(struct osmo_timer_list *timer); int osmo_timer_pending(struct osmo_timer_list *timer); - +int osmo_timer_remaining(const struct osmo_timer_list *timer, + const struct timeval *now, + struct timeval *remaining); /* * internal timer list management */ -- cgit v1.2.3