DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TimestampEstimatorTimeSync.hxx
Go to the documentation of this file.
1#include "logging/Logging.hpp"
2
4
5template<class T>
6void
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 << " source_pid=" << tsync.source_pid;
12 if (tsync.run_number == m_run_number && tsync.source_pid != m_current_process_id) {
13 add_timestamp_datapoint(tsync.daq_time, tsync.system_time);
14 } else {
15 TLOG_DEBUG(0) << "Discarded TimeSync message from run " << tsync.run_number << " during run " << m_run_number
16 << " with pid " << tsync.source_pid << " and timestamp " << tsync.daq_time;
17 }
18}
19
20} // namespace dunedaq::utilities
void add_timestamp_datapoint(uint64_t daq_time, uint64_t system_time)
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112