This class offers a simple counter in milli-seconds since instantiated.  
 More...
#include <IRtimer.h>
|  | 
| static void | add (uint32_t msecs) | 
|  | Add time to the timer to simulate elapsed time.  More... 
 | 
|  | 
|  | 
| uint32_t | start | 
|  | Time in mSeconds when the class was instantiated/reset.  More... 
 | 
|  | 
This class offers a simple counter in milli-seconds since instantiated. 
- Note
- Handles when the system timer wraps around (once). 
◆ TimerMs()
◆ add()
  
  | 
        
          | void TimerMs::add | ( | uint32_t | msecs | ) |  |  | static | 
 
Add time to the timer to simulate elapsed time. 
- Parameters
- 
  
    | [in] | msecs | Nr. of mSeconds to be added. |  
 
- Note
- Only used in unit testing. 
 
 
◆ elapsed()
      
        
          | uint32_t TimerMs::elapsed | ( |  | ) |  | 
      
 
Calculate how many milliseconds have elapsed since the timer was started. 
- Returns
- Nr. of milliseconds. 
 
 
◆ reset()
Resets the TimerMs object. I.e. The counter starts again from now. 
 
 
◆ start
Time in mSeconds when the class was instantiated/reset. 
 
 
The documentation for this class was generated from the following files: