stimer.c File Reference

Timer of seconds library implementation. More...

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

Go to the source code of this file.

Functions

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.
void stimer_restart (struct stimer *t)
 Restart the timer from the current point in time.
int stimer_expired (struct stimer *t)
 Check if a timer has expired.
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.

Detailed Description

Timer of seconds library implementation.

Author:
Adam Dunkels <adam@sics.se>, Nicolas Tsiftes <nvt@sics.se>

Definition in file stimer.c.


Generated on Mon Apr 11 14:23:47 2011 for Contiki 2.5 by  doxygen 1.6.1