DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
TimestampEstimatorSystem is an implementation of TimestampEstimatorBase that uses the system clock to give the current timestamp. More...
#include <TimestampEstimatorSystem.hpp>
Public Member Functions | |
TimestampEstimatorSystem (uint64_t clock_frequency_hz) | |
uint64_t | get_timestamp_estimate () const override |
std::chrono::microseconds | get_wait_estimate (uint64_t ts) const override |
![]() | |
virtual | ~TimestampEstimatorBase ()=default |
WaitStatus | wait_for_valid_timestamp (std::atomic< bool > &continue_flag) |
Waits for a valid timestamp to become available. Returns a status value that indicates whether a valid timestamp is available or not. | |
WaitStatus | wait_for_timestamp (uint64_t ts, std::atomic< bool > &continue_flag) |
Private Attributes | |
uint64_t | m_clock_frequency_hz |
Additional Inherited Members | |
![]() | |
enum | WaitStatus { kFinished , kInterrupted } |
TimestampEstimatorSystem is an implementation of TimestampEstimatorBase that uses the system clock to give the current timestamp.
Definition at line 22 of file TimestampEstimatorSystem.hpp.
|
explicit |
Definition at line 18 of file TimestampEstimatorSystem.cpp.
|
overridevirtual |
Implements dunedaq::utilities::TimestampEstimatorBase.
Definition at line 26 of file TimestampEstimatorSystem.cpp.
|
overridevirtual |
Implements dunedaq::utilities::TimestampEstimatorBase.
Definition at line 34 of file TimestampEstimatorSystem.cpp.
|
private |
Definition at line 32 of file TimestampEstimatorSystem.hpp.