6   template<
class To, 
class Duration>
 
    7   To round(
const Duration& d)
 
    9     To   t0    = std::chrono::duration_cast<To>(d);
 
   18     } 
else if (diff0 < diff1) {
 
   54     std::chrono::microseconds mus = round<std::chrono::microseconds>(std::chrono::nanoseconds{
relativeToA_ns()});
 
Auxiliary classes and methods for acoustic position calibration.
 
constexpr double SECOND_IN_NANOSECOND
 
constexpr int64_t NANOSECONDS_IN_ONE_SECOND
 
constexpr double SECOND_IN_MICROSECOND
 
constexpr int64_t NANOSECONDS_IN_ONE_TICK
 
constexpr double ONE_TICK_IN_NS
 
double daqFrameTimeStart_s() const
Time stamp of the DAQ frame start, in seconds since the Unix epoch (1 January 1970 00:00:00 UTC)
 
int64_t daqFrameTimeStart_ns() const
Normalization for the quality factor.
 
uint32_t SECONDS
Time of Arrival, in ns (relative to Unix epoch, 1 January 1970 00:00:00 UTC)
 
int64_t TOA_NS
Unique ID of the waveform that best described the signal around TOA_NS.
 
int64_t relativeToA_ns() const
Time of Arrival, expressed in nanoseconds relative to the DAQ frame start.
 
double relativeToA_s() const
Time of Arrival, expressed in seconds relative to the DAQ frame start.
 
double TOA_S() const
Time of Arrival, expressed in seconds relative to Unix epoch (1 January 1970 00:00:00 UTC)
 
uint32_t TICKS
The seconds part of the DAQ frame timestamp.