DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TimestampEstimatorSystem.hpp
Go to the documentation of this file.
1
9#ifndef UTILITIES_INCLUDE_UTILITIES_TIMESTAMPESTIMATORSYSTEM_HPP_
10#define UTILITIES_INCLUDE_UTILITIES_TIMESTAMPESTIMATORSYSTEM_HPP_
11
12#include "utilities/Issues.hpp"
14
15namespace dunedaq::utilities {
16
22{
23public:
24 explicit TimestampEstimatorSystem(uint64_t clock_frequency_hz); // NOLINT(build/unsigned)
25
26 uint64_t get_timestamp_estimate() const override; // NOLINT(build/unsigned)
27
28 std::chrono::microseconds get_wait_estimate(uint64_t ts) const override; // NOLINT(build/unsigned)
29
30private:
31 uint64_t m_clock_frequency_hz; // NOLINT(build/unsigned)
32};
33
34} // namespace dunedaq::utilities
35
36#endif // UTILITIES_INCLUDE_UTILITIES_TIMESTAMPESTIMATORSYSTEM_HPP_
TimestampEstimatorBase is the base class for timestamp-based logic in test systems where the current ...
TimestampEstimatorSystem is an implementation of TimestampEstimatorBase that uses the system clock to...
std::chrono::microseconds get_wait_estimate(uint64_t ts) const override
PDS Frame with unphysical timestamp detected with ts