A simple timer class for measuring an interval of time using the ArchTickTimer facilities.
More...
#include <timing.h>
|
| ArchIntervalTimer (bool start=true) |
| Construct a timer and start timing if start is true.
|
|
void | Start () |
| Start the timer, or reset the start time if it has already been started.
|
|
bool | IsStarted () const |
| Return true if this timer is started.
|
|
uint64_t | GetStartTicks () const |
| Return this timer's start time, or 0 if it hasn't been started.
|
|
uint64_t | GetCurrentTicks () |
| Read and return the current time.
|
|
uint64_t | GetElapsedTicks () |
| Read the current time and return the difference between it and the start time.
|
|
A simple timer class for measuring an interval of time using the ArchTickTimer facilities.
Definition at line 166 of file timing.h.
◆ ArchIntervalTimer()
Construct a timer and start timing if start
is true.
Definition at line 169 of file timing.h.
◆ GetCurrentTicks()
uint64_t GetCurrentTicks |
( |
| ) |
|
|
inline |
Read and return the current time.
Definition at line 198 of file timing.h.
◆ GetElapsedTicks()
uint64_t GetElapsedTicks |
( |
| ) |
|
|
inline |
Read the current time and return the difference between it and the start time.
If the timer was not started, return 0.
Definition at line 204 of file timing.h.
◆ GetStartTicks()
uint64_t GetStartTicks |
( |
| ) |
const |
|
inline |
Return this timer's start time, or 0 if it hasn't been started.
Definition at line 193 of file timing.h.
◆ IsStarted()
Return true if this timer is started.
Definition at line 188 of file timing.h.
◆ Start()
Start the timer, or reset the start time if it has already been started.
Definition at line 177 of file timing.h.
The documentation for this struct was generated from the following file: