24 #ifndef __TR_TIMER_H__
25 #define __TR_TIMER_H__
37 #define CLOCK_REALTIME 1
39 int clock_gettime(
int,
struct timespec *tv);
53 unsigned long timeout;
60 unsigned long TR_timerGet(TR_Timer,
unsigned long *);
63 #define TR_timerSetNan(timer, val) (TR_timerSet((timer), TR_TBASE_NAN, (val)))
64 #define TR_timerSetMic(timer, val) (TR_timerSet((timer), TR_TBASE_MIC, (val)))
65 #define TR_timerSetMil(timer, val) (TR_timerSet((timer), TR_TBASE_MIL, (val)))
66 #define TR_timerSetSec(timer, val) (TR_timerSet((timer), TR_TBASE_SEC, (val)))
68 #endif // __TR_TIMER_H__
unsigned long TR_timerGet(TR_Timer, unsigned long *)
TR_CLASSVARS_DECL(TR_Timer)
TR_INSTANCE_INIT(TR_Timer)
void TR_timerSet(TR_Timer, TR_eTimeoutBase, unsigned long)