eckit::Timer class

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
This website is beyond its original expiry date and the content may be out of date. The site owner has been notified and may choose to extend the expiry date and remove this banner. If you have any questions about this, please visit our support portal.