casa::C11Timer Class Reference
#include <C11Timer.h>
List of all members.
Public Member Functions |
| C11Timer () |
| Timer based on C++11 chrono library.
|
| ~C11Timer () |
Double | meanDuration () const |
| return mean duration, in seconds, of all start/stop cycles
|
Double | duration () const |
| duration in seconds of most recent start/stop cycle
|
uInt | nCycles () const |
| number of start/stop cycles
|
void | start () |
| (re)start the timer
|
void | stop () |
| stop the timer
|
Double | totalDuration () const |
| total duration in seconds, sum of all start/stop cycles doesn't include the duration of the current cycle if the timer is currently running
|
Private Attributes |
std::chrono::steady_clock::time_point | _start |
std::chrono::duration< double > | _duration |
std::chrono::duration< double > | _totalDuration |
uInt | _nCycles |
Detailed Description
Definition at line 10 of file C11Timer.h.
Constructor & Destructor Documentation
casa::C11Timer::C11Timer |
( |
|
) |
|
Timer based on C++11 chrono library.
Etymology
Timer based on C++11 chrono library
Synopsis
Timer based on C++11 chrono library create the timer but do not start it.
casa::C11Timer::~C11Timer |
( |
|
) |
|
Member Function Documentation
Double casa::C11Timer::duration |
( |
|
) |
const |
duration in seconds of most recent start/stop cycle
Double casa::C11Timer::meanDuration |
( |
|
) |
const |
return mean duration, in seconds, of all start/stop cycles
uInt casa::C11Timer::nCycles |
( |
|
) |
const |
number of start/stop cycles
void casa::C11Timer::start |
( |
|
) |
|
void casa::C11Timer::stop |
( |
|
) |
|
Double casa::C11Timer::totalDuration |
( |
|
) |
const |
total duration in seconds, sum of all start/stop cycles doesn't include the duration of the current cycle if the timer is currently running
Member Data Documentation
The documentation for this class was generated from the following file: