Microchip® Advanced Software Framework

stimer.h File Reference

Second timer library header file.

Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se, Nicolas Tsiftes nvt@s.nosp@m.ics..nosp@m.se

Data Structures

struct  stimer
 A timer. More...
 

Functions

unsigned long stimer_elapsed (struct stimer *t)
 The time elapsed since the timer started. More...
 
int stimer_expired (struct stimer *t)
 Check if a timer has expired. More...
 
unsigned long stimer_remaining (struct stimer *t)
 The time until the timer expires. More...
 
void stimer_reset (struct stimer *t)
 Reset the timer with the same interval. More...
 
void stimer_restart (struct stimer *t)
 Restart the timer from the current point in time. More...
 
void stimer_set (struct stimer *t, unsigned long interval)
 Set a timer. More...