stimer.c File Reference

Timer of seconds library implementation. More...

#include "contiki.h"
#include "sys/clock.h"
#include "sys/stimer.h"

Go to the source code of this file.


void stimer_set (struct stimer *t, unsigned long interval)
 Set a timer. 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...
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...
unsigned long stimer_elapsed (struct stimer *t)
 The time elapsed since the timer started. More...

Detailed Description

Timer of seconds library implementation.

Adam Dunkels, Nicolas Tsiftes

Definition in file stimer.c.