class
#include <eckit/log/Timer.h>
Timer
Derived classes
-
template<class T>class TraceTimer
- class ProgressTimer
-
template<class T>class TraceTimer
Constructors, destructors, conversion operators
- Timer() explicit
-
Timer(const std::
string& name, std:: ostream& o = Log:: info()) explicit -
Timer(const char* name,
std::
ostream& o = Log:: info()) explicit - ~Timer()
Public functions
- void start()
- void stop()
- auto elapsed() -> double
- auto elapsed_cpu() -> double
-
auto name() const -> const std::
string& - auto running() const -> bool
-
void report(const std::
string& message = "") -
void reset(const std::
string& message = "")
Function documentation
eckit:: Timer:: Timer(const std:: string& name,
std:: ostream& o = Log:: info()) explicit
Parameters | |
---|---|
name | of the timer, used for output |
o | output stream to use for output |
eckit:: Timer:: Timer(const char* name,
std:: ostream& o = Log:: info()) explicit
Parameters | |
---|---|
name | of the timer, used for output |
o | output stream to use for output |