6#define __STDC_LIMIT_MACROS
19 static void add(uint32_t usecs);
34 static void add(uint32_t msecs);
This class offers a simple counter in micro-seconds since instantiated.
Definition IRtimer.h:13
IRtimer()
Class constructor.
Definition IRtimer.cpp:13
static void add(uint32_t usecs)
Add time to the timer to simulate elapsed time.
Definition IRtimer.cpp:42
uint32_t start
Time in uSeconds when the class was instantiated/reset.
Definition IRtimer.h:23
void reset()
Resets the IRtimer object. I.e. The counter starts again from now.
Definition IRtimer.cpp:16
uint32_t elapsed()
Calculate how many microseconds have elapsed since the timer was started.
Definition IRtimer.cpp:26
This class offers a simple counter in milli-seconds since instantiated.
Definition IRtimer.h:28
uint32_t start
Time in mSeconds when the class was instantiated/reset.
Definition IRtimer.h:38
void reset()
Resets the TimerMs object. I.e. The counter starts again from now.
Definition IRtimer.cpp:49
static void add(uint32_t msecs)
Add time to the timer to simulate elapsed time.
Definition IRtimer.cpp:75
TimerMs()
Class constructor.
Definition IRtimer.cpp:46
uint32_t elapsed()
Calculate how many milliseconds have elapsed since the timer was started.
Definition IRtimer.cpp:59