commit | e30b6ac5d1127c368184232dc749cef28d0cbb6c | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Fri Jul 13 12:21:04 2012 +0200 |
committer | Harald Welte <laforge@gnumonks.org> | Fri Jul 13 12:22:20 2012 +0200 |
tree | 2afac8b934cc4510981cfcf00432ebabf07fd12c | |
parent | 3c16de295480f269a1610c6d2cc559718c39c202 [diff] |
timer: Add function osmo_timer_remaining() to determine remainign time
diff --git a/include/osmocom/core/timer.h b/include/osmocom/core/timer.h index ecb5001..d37af80 100644 --- a/include/osmocom/core/timer.h +++ b/include/osmocom/core/timer.h
@@ -73,7 +73,9 @@ 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 */