Mads
Multi-Agent Distributed System
Loading...
Searching...
No Matches
Mads::ClockSample Struct Reference

One four-timestamp exchange, all fields microseconds since the Unix epoch: t1/t4 read from the initiator's clock, t2/t3 from the responder's. More...

#include <clock_offset.hpp>

Public Attributes

int64_t t1 = 0
 
int64_t t2 = 0
 
int64_t t3 = 0
 
int64_t t4 = 0
 
int64_t local_elapsed_us = 0
 

Detailed Description

One four-timestamp exchange, all fields microseconds since the Unix epoch: t1/t4 read from the initiator's clock, t2/t3 from the responder's.

Definition at line 34 of file clock_offset.hpp.

Member Data Documentation

◆ local_elapsed_us

int64_t Mads::ClockSample::local_elapsed_us = 0

t4-t1 as measured on a steady_clock, immune to a wall-clock step landing inside the exchange. 0 means "fall back to t4-t1".

Definition at line 38 of file clock_offset.hpp.

◆ t1

int64_t Mads::ClockSample::t1 = 0

Definition at line 35 of file clock_offset.hpp.

◆ t2

int64_t Mads::ClockSample::t2 = 0

Definition at line 35 of file clock_offset.hpp.

◆ t3

int64_t Mads::ClockSample::t3 = 0

Definition at line 35 of file clock_offset.hpp.

◆ t4

int64_t Mads::ClockSample::t4 = 0

Definition at line 35 of file clock_offset.hpp.


The documentation for this struct was generated from the following file: