Security Scol plugin
|
High resolution timer. More...
#include <hrtimer.h>
Public Member Functions | |
Timer (Unit unit=TimerBase::SECONDS, bool stuckAtZero=false) | |
Construct a Timer. | |
TimerWord | GetCurrentTimerValue () |
Retrieve the current timer value. | |
TimerWord | TicksPerSecond () |
Retrieve ticks per second. | |
Public Member Functions inherited from TimerBase | |
TimerBase (Unit unit, bool stuckAtZero) | |
Construct a TimerBase. | |
void | StartTimer () |
Start the timer. | |
double | ElapsedTimeAsDouble () |
Retrieve the elapsed time. | |
unsigned long | ElapsedTime () |
Retrieve the elapsed time. | |
Additional Inherited Members | |
Public Types inherited from TimerBase | |
enum | Unit { SECONDS = 0 , MILLISECONDS , MICROSECONDS , NANOSECONDS } |
Unit of measure. More... | |
|
inline |
|
virtual |
Retrieve the current timer value.
Implements TimerBase.
Definition at line 90 of file hrtimer.cpp.
|
virtual |
Retrieve ticks per second.
TicksPerSecond() is not the timer resolution. It is a conversion factor into seconds.
Implements TimerBase.
Definition at line 108 of file hrtimer.cpp.