Timer class
#include <main/ipc/timer/Timer.hpp>
Contents
A timer for asynchronous operations and thread communication.
Constructors, destructors, conversion operators
- Timer()
Public functions
- void start() virtual
- void startTimeLapse()
- auto getLatestUpdate() const -> uint64_t
- auto getRuntime() -> uint64_t
- auto elapsedTime() -> uint64_t
Function documentation
Timer:: Timer()
Creates and initializes a timer instance.
void Timer:: start() virtual
Start the timer (if not already).
void Timer:: startTimeLapse()
Starts tracking elapsed time.
uint64_t Timer:: getLatestUpdate() const
| Returns | the most recent time |
|---|
Returns the most recent update time without refreshing.
uint64_t Timer:: getRuntime()
| Returns | the total system runtime |
|---|
Returns the total time since the system started.
uint64_t Timer:: elapsedTime()
| Returns | the elapsed time. |
|---|
Obtains the elapsed time since startTimeLapse() was called.