85 unsigned long interval;
102 t->interval = interval;
120static inline unsigned long
unsigned long clock_seconds(void)
Get the current value of the platform seconds.
void stimer_reset(struct stimer *t)
Reset the timer with the same interval.
void stimer_restart(struct stimer *t)
Restart the timer from the current point in time.
static void stimer_set(struct stimer *t, unsigned long interval)
Set a timer.
static unsigned long stimer_remaining(struct stimer *t)
The time until the timer expires.
unsigned long stimer_elapsed(struct stimer *t)
The time elapsed since the timer started.
bool stimer_expired(struct stimer *t)
Check if a timer has expired.