Simple extension of Timer allowing to pause and continue timer.
More...
#include <Timer.h>
Simple extension of Timer allowing to pause and continue timer.
Definition at line 72 of file Timer.h.
◆ elapsed()
int64_t StoppableTimer::elapsed |
( |
const TimerUnit |
unit | ) |
const |
Returns elapsed time in timer units. Does not reset the timer.
Definition at line 85 of file Timer.cpp.
◆ elapsedImpl()
auto StoppableTimer::elapsedImpl |
( |
| ) |
const |
|
inlineprotected |
◆ resume()
void StoppableTimer::resume |
( |
| ) |
|
Resumes stopped timer.
Definition at line 77 of file Timer.cpp.
◆ stop()
void StoppableTimer::stop |
( |
| ) |
|
Stops the timer. Function getElapsed() will report the same value from now on.
Definition at line 70 of file Timer.cpp.
◆ isStopped
bool StoppableTimer::isStopped = false |
|
protected |
◆ stopped
The documentation for this class was generated from the following files:
- /home/pavel/projects/astro/sph/src/core/system/Timer.h
- /home/pavel/projects/astro/sph/src/core/system/Timer.cpp