Microchip® Advanced Software Framework

wireless/SmartConnect_6LoWPAN/core/sys/timer.c File Reference

Timer library implementation.

Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se
#include "contiki-conf.h"
#include "sys/contiki-clock.h"
#include "sys/timer.h"

Functions

int timer_expired (struct timer *t)
 Check if a timer has expired. More...
 
clock_time_t timer_remaining (struct timer *t)
 The time until the timer expires. More...
 
void timer_reset (struct timer *t)
 Reset the timer with the same interval. More...
 
void timer_restart (struct timer *t)
 Restart the timer from the current point in time. More...
 
void timer_set (struct timer *t, clock_time_t interval)
 Set a timer. More...