ATLAS Offline Software
Loading...
Searching...
No Matches
TrigTimeStamp.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4
6
8 return std::chrono::duration_cast<std::chrono::milliseconds>( std::chrono::high_resolution_clock::now() - m_stamp ).count();
9}
10
12 return std::chrono::duration_cast<std::chrono::milliseconds>( other.get() - m_stamp ).count();
13}
14
16 // Note: A uint64_t at microsecond precision has capacity of ~585,000 years
17 uint64_t microsecondsSinceEpoch = std::chrono::duration_cast<std::chrono::microseconds>( m_stamp.time_since_epoch() ).count();
19}
double millisecondsSince() const
TrigTimeStamp()
Default constructor, sets to now.
double millisecondsDifference(const TrigTimeStamp &other) const
uint64_t microsecondsSinceEpoch() const
stamp_type m_stamp