Skip to content

Struct dp_sample_clock_t

ClassList > dp_sample_clock_t

More...

  • #include <timing_core.h>

Public Attributes

Type Name
uint64_t epoch_mono_ns
uint64_t epoch_real_ns
double fs
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

uint64_t dp_sample_clock_t::epoch_mono_ns;

CLOCK_MONOTONIC baseline for pacing.


variable epoch_real_ns

uint64_t dp_sample_clock_t::epoch_real_ns;

CLOCK_REALTIME baseline for stamping.


variable fs

double dp_sample_clock_t::fs;

sample rate (Hz).


variable max_late_ns

uint64_t dp_sample_clock_t::max_late_ns;

worst lateness observed (ns).


variable n

uint64_t dp_sample_clock_t::n;

cumulative samples advanced.


variable resync

int dp_sample_clock_t::resync;

nonzero: pace() re-anchors on underrun.


variable underruns

uint64_t dp_sample_clock_t::underruns;

pace() calls that arrived past deadline.



The documentation for this class was generated from the following file native/inc/timing/timing_core.h