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
13#include "utilities/Issues.hpp"
14
15namespace dunedaq {
16namespace utilities {
17
23{
24public:
25 explicit TimestampEstimatorSystem(uint64_t clock_frequency_hz); // NOLINT(build/unsigned)
26
27 uint64_t get_timestamp_estimate() const override;
28
29 std::chrono::microseconds get_wait_estimate(uint64_t ts) const override;
30
31private:
32 uint64_t m_clock_frequency_hz; // NOLINT(build/unsigned)
33};
34
35} // namespace utilities
36} // namespace dunedaq
37
38#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
Including Qt Headers.
PDS Frame with unphysical timestamp detected with ts