This class performs a simple timer in useconds since instantiated.
More...
#include <IRtimer.h>
|
static void | add (uint32_t usecs) |
| Add time to the timer to simulate elapsed time. More...
|
|
This class performs a simple timer in useconds since instantiated.
- Note
- Handles when the system timer wraps around (once).
◆ IRtimer()
◆ add()
void IRtimer::add |
( |
uint32_t |
usecs | ) |
|
|
static |
Add time to the timer to simulate elapsed time.
- Parameters
-
[in] | usecs | Nr. of uSeconds to be added. |
- Note
- Only used in unit testing.
◆ elapsed()
uint32_t IRtimer::elapsed |
( |
| ) |
|
Calculate how many microseconds have elapsed since the timer was started.
- Returns
- Nr. of microseconds.
◆ reset()
◆ start
The documentation for this class was generated from the following files: