Struct dp_sample_clock_t¶
#include <timing_core.h>
Public Attributes¶
| Type | Name |
|---|---|
| uint64_t | epoch_mono_ns |
| uint64_t | epoch_real_ns |
| double | fs |
| int | has_anchor |
| uint64_t | max_late_ns |
| uint64_t | n |
| int | resync |
| uint64_t | underruns |
Detailed Description¶
Sample-clock state. Treat the fields as read-only from the outside; mutate only through the functions below.
Public Attributes Documentation¶
variable epoch_mono_ns¶
CLOCK_MONOTONIC baseline for pacing.
variable epoch_real_ns¶
CLOCK_REALTIME baseline for stamping.
variable fs¶
sample rate (Hz).
variable has_anchor¶
nonzero once track() has adopted a real observed (timestamp, n) pair; init()/reset() start at 0 the receive-side counterpart of the TX-side epoch capture, so the first track() call always adopts rather than tolerance-gating against an arbitrary construction-time guess.
variable max_late_ns¶
worst lateness observed (ns).
variable n¶
cumulative samples advanced.
variable resync¶
nonzero: pace() re-anchors on underrun.
variable underruns¶
pace() calls that arrived past deadline.
The documentation for this class was generated from the following file native/inc/timing/timing_core.h