48 #include "contiki-conf.h"
49 #include "sys/clock.h"
52 #define SCLOCK_GEQ(a, b) ((unsigned long)((a) - (b)) < \
53 ((unsigned long)(~((unsigned long)0)) >> 1))
70 t->interval = interval;
71 t->start = clock_seconds();
90 t->start += t->interval;
110 t->start = clock_seconds();
127 return SCLOCK_GEQ(clock_seconds(), t->start + t->interval);
143 return t->start + t->interval - clock_seconds();
159 return clock_seconds() - t->start;