ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
PMonUtils::BasicStopWatch Class Reference

#include <BasicStopWatch.h>

Collaboration diagram for PMonUtils::BasicStopWatch:

Public Member Functions

 BasicStopWatch (const std::string &name, BasicStopWatchResultMap_t &result)
 
 ~BasicStopWatch ()
 

Private Attributes

std::string m_name
 
BasicStopWatchResultMap_tm_result
 
std::chrono::time_point< std::chrono::steady_clock > m_start
 

Detailed Description

Definition at line 17 of file BasicStopWatch.h.

Constructor & Destructor Documentation

◆ BasicStopWatch()

PMonUtils::BasicStopWatch::BasicStopWatch ( const std::string &  name,
BasicStopWatchResultMap_t result 
)
inline

Definition at line 21 of file BasicStopWatch.h.

◆ ~BasicStopWatch()

PMonUtils::BasicStopWatch::~BasicStopWatch ( )
inline

Definition at line 25 of file BasicStopWatch.h.

25  {
26  std::chrono::duration<double, std::milli> total = std::chrono::steady_clock::now() - m_start;
28  m_result.insert(acc, m_name);
29  acc->second += total.count();
30  acc.release();
31  }

Member Data Documentation

◆ m_name

std::string PMonUtils::BasicStopWatch::m_name
private

Definition at line 35 of file BasicStopWatch.h.

◆ m_result

BasicStopWatchResultMap_t& PMonUtils::BasicStopWatch::m_result
private

Definition at line 38 of file BasicStopWatch.h.

◆ m_start

std::chrono::time_point<std::chrono::steady_clock> PMonUtils::BasicStopWatch::m_start
private

Definition at line 41 of file BasicStopWatch.h.


The documentation for this class was generated from the following file:
PMonUtils::BasicStopWatch::m_name
std::string m_name
Definition: BasicStopWatch.h:35
get_generator_info.result
result
Definition: get_generator_info.py:21
PMonUtils::BasicStopWatch::m_result
BasicStopWatchResultMap_t & m_result
Definition: BasicStopWatch.h:38
python.handimod.now
now
Definition: handimod.py:675
AthenaPoolTestRead.acc
acc
Definition: AthenaPoolTestRead.py:16
PMonUtils::BasicStopWatch::m_start
std::chrono::time_point< std::chrono::steady_clock > m_start
Definition: BasicStopWatch.h:41
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
xAOD::JetAttributeAccessor::accessor
const AccessorWrapper< T > * accessor(xAOD::JetAttribute::AttributeID id)
Returns an attribute accessor corresponding to an AttributeID.
Definition: JetAccessorMap.h:26