ATLAS Offline Software
|
#include <MonitoredTimer.h>
Public Member Functions | |
Timer (std::string name) | |
Timer (Timer &&)=default | |
Timer (Timer const &)=delete | |
void | start () |
void | stop () |
operator double () const | |
duration (in unit) between start and stop (or current time) More... | |
virtual double | get (size_t) const override |
virtual std::string | getString ([[maybe_unused]] size_t i) const override |
virtual bool | hasStringRepresentation () const override |
indcates that the stored content can be converted to strings More... | |
virtual size_t | size () const override |
gives size of vector representation More... | |
const std::string & | name () const |
virtual std::string | getString (size_t) const =0 |
Public Attributes | |
friend | MonitoredGroup |
Private Types | |
typedef std::chrono::high_resolution_clock | clock_type |
Private Member Functions | |
Timer & | operator= (Timer const &)=delete |
Private Attributes | |
clock_type::time_point | m_startTime |
clock_type::time_point | m_stopTime |
const std::string | m_name |
A monitored timer.
The time is measured either between explicit stop/start calls or between the creation and the time the value is read by the monitoring tool.
A strict naming convention is enforced. Timers need to start with the string "TIME_".
unit | Unit of elapsed time (std::chrono::duration) |
Definition at line 32 of file MonitoredTimer.h.
|
private |
Definition at line 50 of file MonitoredTimer.h.
Timer::Timer | ( | std::string | name | ) |
Definition at line 59 of file MonitoredTimer.h.
|
default |
|
delete |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Definition at line 44 of file MonitoredTimer.h.
|
pure virtualinherited |
Implemented in Monitored::Scalar< T >.
|
inlineoverridevirtual |
indcates that the stored content can be converted to strings
Implements Monitored::IMonitoredVariable.
Definition at line 45 of file MonitoredTimer.h.
|
inlineinherited |
Definition at line 19 of file IMonitoredVariable.h.
Timer::operator double |
duration (in unit) between start and stop (or current time)
Definition at line 70 of file MonitoredTimer.h.
|
privatedelete |
|
inlineoverridevirtual |
gives size of vector representation
Implements Monitored::IMonitoredVariable.
Definition at line 46 of file MonitoredTimer.h.
void Timer::start |
Definition at line 64 of file MonitoredTimer.h.
void Timer::stop |
Definition at line 67 of file MonitoredTimer.h.
|
privateinherited |
Definition at line 31 of file IMonitoredVariable.h.
|
private |
Definition at line 51 of file MonitoredTimer.h.
|
private |
Definition at line 52 of file MonitoredTimer.h.
|
inherited |
Definition at line 16 of file IMonitoredVariable.h.