|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
A synthetic message used to ensure that all elements of a DAQ system are synchronized. More...
#include <TimeSync.hpp>
Public Member Functions | |
| TimeSync ()=default | |
| TimeSync (timestamp_t daq_time, system_time_t sys_time=gettimeofday_us()) | |
| Construct a TimeSync message. | |
| DUNE_DAQ_SERIALIZE (TimeSync, daq_time, system_time, run_number, sequence_number, source_id) | |
Static Public Member Functions | |
| static system_time_t | gettimeofday_us () |
| Get the current system time. | |
Public Attributes | |
| timestamp_t | daq_time { TypeDefaults::s_invalid_timestamp } |
| The current DAQ time. | |
| system_time_t | system_time { TypeDefaults::s_invalid_system_time } |
| The current system time. | |
| uint64_t | sequence_number { 0 } |
| Sequence Number of this message, for debugging. | |
| run_number_t | run_number { 0 } |
| Run number at time of creation. | |
| uint32_t | source_id { 0 } |
| SourceID::id of the creating DAQModule, for debugging. | |
A synthetic message used to ensure that all elements of a DAQ system are synchronized.
Definition at line 24 of file TimeSync.hpp.
|
default |
|
inlineexplicit |
Construct a TimeSync message.
| daq_time | The current DAQ time |
| sys_time | The current system time. Will be initialized to gettimeofday_us() if unset |
Definition at line 44 of file TimeSync.hpp.
| dunedaq::dfmessages::TimeSync::DUNE_DAQ_SERIALIZE | ( | TimeSync | , |
| daq_time | , | ||
| system_time | , | ||
| run_number | , | ||
| sequence_number | , | ||
| source_id | ) |
|
inlinestatic |
Get the current system time.
system_time_t values are defined as the number of microseconds since the system clock epoch
Definition at line 55 of file TimeSync.hpp.
| timestamp_t dunedaq::dfmessages::TimeSync::daq_time { TypeDefaults::s_invalid_timestamp } |
The current DAQ time.
Definition at line 27 of file TimeSync.hpp.
| run_number_t dunedaq::dfmessages::TimeSync::run_number { 0 } |
| uint64_t dunedaq::dfmessages::TimeSync::sequence_number { 0 } |
Sequence Number of this message, for debugging.
Definition at line 31 of file TimeSync.hpp.
| uint32_t dunedaq::dfmessages::TimeSync::source_id { 0 } |
SourceID::id of the creating DAQModule, for debugging.
Definition at line 35 of file TimeSync.hpp.
| system_time_t dunedaq::dfmessages::TimeSync::system_time { TypeDefaults::s_invalid_system_time } |
The current system time.
Definition at line 29 of file TimeSync.hpp.