Provides a coarse timer for determining the elapsed time between two events.
Go to the source code of this file.
Data Structures | |
struct | CoarseTimer_Settings |
Settings for the CoarseTimer module. More... | |
Typedefs | |
typedef uint32_t | CoarseTimer_Value |
An opaque type used to represent a time stamp. | |
Functions | |
void | CoarseTimer_Initialize (const CoarseTimer_Settings *settings) |
Initialize the timer. More... | |
void | CoarseTimer_TimerEvent () |
Update the timer. More... | |
CoarseTimer_Value | CoarseTimer_GetTime () |
Get the current value of the timer. More... | |
uint32_t | CoarseTimer_ElapsedTime (CoarseTimer_Value start_time) |
Return the interval since the start_time. More... | |
uint32_t | CoarseTimer_Delta (CoarseTimer_Value start_time, CoarseTimer_Value end_time) |
Return the interval between two times. More... | |
bool | CoarseTimer_HasElapsed (CoarseTimer_Value start_time, uint32_t interval) |
Check if a time interval has passed. More... | |
void | CoarseTimer_SetCounter (uint32_t count) |
Manually set the internal counter. More... | |