![]() |
ClearCore Library
|
Stopwatch/timer using millisecond time base (recommended for most timeouts).
Use this when: your delays/timeouts are human-scale (10 ms to minutes+), and you don’t need microsecond resolution.
Time base: milliseconds.
Rollover guidance: this timer will rollover every ~49.7 days - safe for long-running timers compared to microseconds (microsecond base rolls faster).
Stopwatch/timer using millisecond time base (recommended for most timeouts). More...
#include <SysTimer.h>
Inheritance diagram for ClearCore::SysTimerMs:
Collaboration diagram for ClearCore::SysTimerMs:Public Member Functions | |
| SysTimerMs () | |
| Default constructor. | |
| SysTimerMs (uint32_t delay) | |
| Construct and specify the timer's delay. | |
Public Member Functions inherited from ClearCore::SysTimer | |
| void | SetDelay (uint32_t delay) |
| Set the delay of the timer. | |
| void | Start (uint32_t delay) |
| Starts the timer with a delay argument. | |
| void | Start () |
| Starts the timer with the default or configured delay. | |
| bool | Completed () |
| Check to see if the timer has completed. | |
| uint32_t | Elapsed () |
| Check how much time has elapsed since the start of the timer. | |
|
inline |
Default constructor.
|
inline |
Construct and specify the timer's delay.
| [in] | delay | The delay for the timer in milliseconds |