DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TimestampEstimator.hxx
Go to the documentation of this file.
1#include "logging/Logging.hpp"
2
3namespace dunedaq {
4namespace utilities {
5
6template <class T>
8{
10 TLOG_DEBUG(TLVL_TIME_SYNC_PROPERTIES) << "Got a TimeSync run=" << tsync.run_number << " local run=" << m_run_number
11 << " seqno=" << tsync.sequence_number
12 << " source_pid=" << tsync.source_pid;
13 if (tsync.run_number == m_run_number && tsync.source_pid != m_current_process_id) {
14 add_timestamp_datapoint(tsync.daq_time, tsync.system_time);
15 } else {
16 TLOG_DEBUG(0) << "Discarded TimeSync message from run " << tsync.run_number << " during run "
17 << m_run_number << " with pid " << tsync.source_pid << " and timestamp " << tsync.daq_time;
18 }
19}
20
21}
22}
std::atomic< uint64_t > m_received_timesync_count
void add_timestamp_datapoint(uint64_t daq_time, uint64_t system_time)
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112
Including Qt Headers.
#define TLVL_TIME_SYNC_PROPERTIES
Definition Issues.hpp:16