#include <RecurringTimer.h>
|
std::chrono::time_point< std::chrono::system_clock > | now () |
|
|
std::chrono::time_point< std::chrono::system_clock > | startTime |
|
std::chrono::duration< long long, std::micro > | totalDur {} |
|
An cumulative timer that can be started and stopped multiple times and summs up each runtime.
◆ durationSeconds()
double RecurringTimer::durationSeconds |
( |
| ) |
const |
Returns the total duration of the timer in seconds.
- Returns
- the total duration of the timer in seconds.
◆ log()
void RecurringTimer::log |
( |
const std::string & |
what, |
|
|
const std::string & |
part |
|
) |
| const |
Loggs the runtime to GLOG with an string tag and description "[<part>] <what> took <time>"
- Parameters
-
what | the description of what was measured |
what | the description of what was measured |
◆ now()
std::chrono::time_point< std::chrono::system_clock > RecurringTimer::now |
( |
| ) |
|
|
protected |
◆ start()
void RecurringTimer::start |
( |
| ) |
|
Start the timer, has to be done explicitely after initializing the class
◆ stop()
void RecurringTimer::stop |
( |
| ) |
|
Stopps the timer, and adds the runtime to the endresult.
◆ startTime
std::chrono::time_point<std::chrono::system_clock> RecurringTimer::startTime |
|
protected |
◆ totalDur
std::chrono::duration<long long, std::micro> RecurringTimer::totalDur {} |
|
protected |
The documentation for this class was generated from the following files:
- /home/nico/joda_tmp/tmp-joda-dirs/JODA-gh/libs/joda/core/modules/misc/include/joda/misc/RecurringTimer.h
- /home/nico/joda_tmp/tmp-joda-dirs/JODA-gh/libs/joda/core/modules/misc/src/RecurringTimer.cpp