utility class to measure time duration in AthenaMT The pattern when it is useful: AlgA tags the beginning of the time period AlgA::execute() { timeStampHandle.record( std::move( std::make_unique<TrigTimeStamp>() ) ); }
More...
#include <TrigTimeStamp.h>
|
typedef std::chrono::high_resolution_clock::time_point | stamp_type |
|
utility class to measure time duration in AthenaMT The pattern when it is useful: AlgA tags the beginning of the time period AlgA::execute() { timeStampHandle.record( std::move( std::make_unique<TrigTimeStamp>() ) ); }
AlgB obtains the duration since the start tagged in AlgA: AlgB::execute() { double duration = timeStampHandle.cptr().millisecondsSince(); }
Definition at line 23 of file TrigTimeStamp.h.
◆ stamp_type
◆ TrigTimeStamp() [1/2]
TrigTimeStamp::TrigTimeStamp |
( |
| ) |
|
|
inline |
◆ TrigTimeStamp() [2/2]
Automatic copy constructor.
◆ get()
◆ microsecondsSinceEpoch()
uint64_t TrigTimeStamp::microsecondsSinceEpoch |
( |
| ) |
const |
- Returns
- The time duration between when the time stamp was created and the epoch
Definition at line 15 of file TrigTimeStamp.cxx.
◆ millisecondsDifference()
- Returns
- The time duration between when this and another time stamp were created, or last set
- Parameters
-
[in] | other | Time stamp to compare this one to |
Definition at line 11 of file TrigTimeStamp.cxx.
12 return std::chrono::duration_cast<std::chrono::milliseconds>(
other.get() -
m_stamp ).count();
◆ millisecondsSince()
double TrigTimeStamp::millisecondsSince |
( |
| ) |
const |
- Returns
- The time duration between now and when the time stamp was created
Definition at line 7 of file TrigTimeStamp.cxx.
◆ operator=()
Automatic copy assignemnt operator.
◆ set()
◆ m_stamp
The documentation for this class was generated from the following files: