![]() |
ClearCore Library
|
Stopwatch/timer using microsecond time base (short, high-resolution timing).
Use this when: you need short, tight timing (sub-millisecond delays, pulse measurement windows, quick debounces).
Time base: microseconds.
Rollover caution: this timer will rollover every ~71.5 minutes - best for shorter, more precise intervals.
Stopwatch/timer using microsecond time base (short, high-resolution timing). More...
#include <SysTimer.h>
Inheritance diagram for ClearCore::SysTimerUs:
Collaboration diagram for ClearCore::SysTimerUs:Public Member Functions | |
| SysTimerUs () | |
| Default constructor. | |
| SysTimerUs (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 microseconds |