High precision timer.
More...
#include <SystemTicker.h>
|
| SystemTicker (const char *name) |
|
| SystemTicker (const char *group, const char *name) |
|
unsigned long | timeMS (void) |
| Returns a time in milliseconds from an arbitrary fixed reference point. More...
|
|
void | log (const char *fmt,...) |
|
void | log (void) |
|
|
static void FE_CDECL | calibrate (void) |
| Perform a self-contained recalibration. More...
|
|
static unsigned long | ticksPerMS (void) |
| Returns the approximate number of processor clock ticks that occur every millisecond. More...
|
|
static unsigned long | tickDifference (unsigned long start, unsigned long finish) |
| Return the reltive tick change between two absolute tick values. More...
|
|
static float | microsecondsPerTick () |
| Returns the fractional number of microseonds for each processor clock tick. More...
|
|
|
static void | staticInit (void) |
|
|
unsigned long | m_lastincl |
|
unsigned long | m_lastexcl |
|
String | m_name |
|
String | m_group |
|
unsigned long | m_lasttick |
|
struct timeval | m_timer |
|
|
static unsigned long | ms_ticksPerMS = 1 |
|
static float | ms_usPerTick = 1 |
|
◆ calibrate()
static void FE_CDECL fe::SystemTicker::calibrate |
( |
void |
| ) |
|
|
inlinestatic |
Perform a self-contained recalibration.
Must be performed at least once before TicksPerMS can be considered useful.
◆ microsecondsPerTick()
static float fe::SystemTicker::microsecondsPerTick |
( |
| ) |
|
|
inlinestatic |
◆ tickDifference()
static unsigned long fe::SystemTicker::tickDifference |
( |
unsigned long |
start, |
|
|
unsigned long |
finish |
|
) |
| |
|
inlinestatic |
Return the reltive tick change between two absolute tick values.
Rollover is corrected.
◆ ticksPerMS()
static unsigned long fe::SystemTicker::ticksPerMS |
( |
void |
| ) |
|
|
inlinestatic |
Returns the approximate number of processor clock ticks that occur every millisecond.
◆ timeMS()
unsigned long fe::SystemTicker::timeMS |
( |
void |
| ) |
|
Returns a time in milliseconds from an arbitrary fixed reference point.
This number can loop.
The documentation for this class was generated from the following files: