Skip to main content

Module clock

Module clock 

Source
Expand description

The clock offset that an inlet measures against its outlet. SPEC.md 3.

A thread sends a burst of probes, keeps the estimate with the lowest round-trip time, and publishes it. The post-processor reads that value through OffsetSource, so the arithmetic stays in labstream-time where a test can drive it with fixed numbers.

Structs§

ClockState
The published result of the most recent burst.
LiveSource
Feeds the post-processor from a live connection.

Functions§

probe_count
How many probes one burst sends. src/api_config.cpp:316.
probe_interval
How long between two probes of one burst. src/api_config.cpp:317.
probe_max_rtt
How long a burst waits for the last answer. src/api_config.cpp:318.
start
Start a thread that keeps the offset up to date.
update_interval
How long between two bursts. src/api_config.cpp:314.
update_min_probes
How many answers a burst needs before it publishes. src/api_config.cpp:315.