ClearCore Library
|
ClearCore system timing class.
This class provides an interface for various timing-related operations.
ClearCore system timing class. More...
#include <SysTiming.h>
Public Member Functions | |
uint32_t | Microseconds () |
Number of microseconds elapsed since the ClearCore was initialized. | |
void | ResetMicroseconds () |
volatile const uint32_t & | Milliseconds () |
Number of milliseconds elapsed since the ClearCore was initialized. | |
void | ResetMilliseconds () |
uint32_t ClearCore::SysTiming::Microseconds | ( | ) |
Number of microseconds elapsed since the ClearCore was initialized.
Uses the processor's cycle counter register to calculate the number of microseconds elapsed.
|
inline |
Number of milliseconds elapsed since the ClearCore was initialized.
Uses the fast update interrupt counter to retrieve the number of milliseconds elapsed.
void ClearCore::SysTiming::ResetMicroseconds | ( | ) |
Resets the microsecond timer.
void ClearCore::SysTiming::ResetMilliseconds | ( | ) |
Resets the millisecond timer.