Added a timer_remaining() function that returns the time until the timer expires
This commit is contained in:
parent
44914851fd
commit
f127b3e24c
2 changed files with 20 additions and 2 deletions
|
@ -69,7 +69,7 @@
|
|||
*
|
||||
* Author: Adam Dunkels <adam@sics.se>
|
||||
*
|
||||
* $Id: timer.h,v 1.1 2006/06/17 22:41:20 adamdunkels Exp $
|
||||
* $Id: timer.h,v 1.2 2008/09/21 08:58:05 adamdunkels Exp $
|
||||
*/
|
||||
#ifndef __TIMER_H__
|
||||
#define __TIMER_H__
|
||||
|
@ -93,6 +93,8 @@ void timer_set(struct timer *t, clock_time_t interval);
|
|||
void timer_reset(struct timer *t);
|
||||
void timer_restart(struct timer *t);
|
||||
int timer_expired(struct timer *t);
|
||||
clock_time_t timer_remaining(struct timer *t);
|
||||
|
||||
|
||||
#endif /* __TIMER_H__ */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue