5#ifndef TrigTimeAlgs_TrigTimeStamp_h
6#define TrigTimeAlgs_TrigTimeStamp_h
25 typedef std::chrono::high_resolution_clock::time_point
stamp_type;
67 void set(
stamp_type time = std::chrono::high_resolution_clock::now());
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
utility class to measure time duration in AthenaMT The pattern when it is useful: AlgA tags the begin...
stamp_type get() const
Obtain the stamp value.
double millisecondsSince() const
TrigTimeStamp()
Default constructor, sets to now.
double millisecondsDifference(const TrigTimeStamp &other) const
std::chrono::high_resolution_clock::time_point stamp_type
TrigTimeStamp(const TrigTimeStamp &)=default
Automatic copy constructor.
uint64_t microsecondsSinceEpoch() const
TrigTimeStamp & operator=(const TrigTimeStamp &)=default
Automatic copy assignemnt operator.
void set(stamp_type time=std::chrono::high_resolution_clock::now())
Update the stamp value.