48 #include "sys/clock.h" 51 #define SCLOCK_GEQ(a, b) ((unsigned long)((a) - (b)) < \ 52 ((unsigned long)(~((unsigned long)0)) >> 1)) 69 t->interval = interval;
91 t->start += t->interval;
unsigned long stimer_remaining(struct stimer *t)
The time until the timer expires.
int stimer_expired(struct stimer *t)
Check if a timer has expired.
void stimer_restart(struct stimer *t)
Restart the timer from the current point in time.
unsigned long clock_seconds(void)
Get the current value of the platform seconds.
unsigned long stimer_elapsed(struct stimer *t)
The time elapsed since the timer started.
void stimer_set(struct stimer *t, unsigned long interval)
Set a timer.
void stimer_reset(struct stimer *t)
Reset the timer with the same interval.
Second timer library header file.