casa
5.7.0-16
|
#include <C11Timer.h>
Public Member Functions | |
C11Timer () | |
casacore::Timer based on C++11 chrono library More... | |
~C11Timer () | |
casacore::Double | meanDuration () const |
return mean duration, in seconds, of all start/stop cycles More... | |
casacore::Double | duration () const |
duration in seconds of most recent start/stop cycle More... | |
casacore::uInt | nCycles () const |
number of start/stop cycles More... | |
void | start () |
(re)start the timer More... | |
void | stop () |
stop the timer More... | |
casacore::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 More... | |
Private Attributes | |
std::chrono::steady_clock::time_point | _start |
std::chrono::duration< double > | _duration |
std::chrono::duration< double > | _totalDuration |
casacore::uInt | _nCycles |
Definition at line 10 of file C11Timer.h.
casa::C11Timer::C11Timer | ( | ) |
casacore::Timer based on C++11 chrono library
casacore::Timer based on C++11 chrono library
casacore::Timer based on C++11 chrono librarycreate the timer but do not start it.
casa::C11Timer::~C11Timer | ( | ) |
casacore::Double casa::C11Timer::duration | ( | ) | const |
duration in seconds of most recent start/stop cycle
casacore::Double casa::C11Timer::meanDuration | ( | ) | const |
return mean duration, in seconds, of all start/stop cycles
casacore::uInt casa::C11Timer::nCycles | ( | ) | const |
number of start/stop cycles
void casa::C11Timer::start | ( | ) |
(re)start the timer
void casa::C11Timer::stop | ( | ) |
stop the timer
casacore::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
|
private |
Definition at line 57 of file C11Timer.h.
|
private |
Definition at line 58 of file C11Timer.h.
|
private |
Definition at line 56 of file C11Timer.h.
|
private |
Definition at line 57 of file C11Timer.h.