54 new_a2b = ((old_a2b - got_a2b) * alpha) / 1000 + got_a2b;
int64_t timepoint_ns
Integer timestamp type.
Definition: u_time.h:70
int64_t time_duration_ns
Integer duration type in nanoseconds.
Definition: u_time.h:81
static timepoint_ns m_clock_offset_a2b(float freq, timepoint_ns a, timepoint_ns b, time_duration_ns *inout_a2b)
Helper to estimate the offset between two clocks using exponential smoothing.
Definition: m_clock_tracking.h:40
struct m_clock_windowed_skew_tracker * m_clock_windowed_skew_tracker_alloc(const size_t window_samples)
Allocate a struct m_clock_windowed_skew_tracker with a window of.
Definition: m_clock_tracking.c:65
Definition: m_clock_tracking.c:35
Time-keeping: a clock that is steady, convertible to system time, and ideally high-resolution.
Common defines and enums for XRT.