33 #ifndef RTIMER_ARCH_H_ 34 #define RTIMER_ARCH_H_ 37 #include "sys/clock.h" 38 #include "lib/simEnvChange.h" 39 #include "sys/cooja_mt.h" 41 #define RTIMER_ARCH_SECOND UINT64_C(1000000) 43 #define US_TO_RTIMERTICKS(US) (US) 44 #define RTIMERTICKS_TO_US(T) (T) 45 #define RTIMERTICKS_TO_US_64(T) (T) 48 int rtimer_arch_check(
void);
49 int rtimer_arch_pending(
void);
50 rtimer_clock_t rtimer_arch_next(
void);
55 #define RTIMER_BUSYWAIT_UNTIL_ABS(cond, t0, max_time) \ 58 while(!(c = cond) && RTIMER_CLOCK_LT(RTIMER_NOW(), (t0) + (max_time))) { \ 59 simProcessRunValue = 1; \ rtimer_clock_t rtimer_arch_now(void)
Returns the current real-time clock time.