12 #ifndef ROC_RTCP_RTT_ESTIMATOR_H_
13 #define ROC_RTCP_RTT_ESTIMATOR_H_
Round-trip time estimator. Created inside rtcp::Reporter for each RTP stream. Continously computes RT...
RttEstimator(const RttConfig &config)
Initialize.
void update(core::nanoseconds_t local_report_ts, core::nanoseconds_t remote_report_ts, core::nanoseconds_t remote_reply_ts, core::nanoseconds_t local_reply_ts)
Update metrics with new data. Parameters:
bool has_metrics() const
Check whether metrics are already available.
const RttMetrics & metrics() const
Get estimated metrics.
const nanoseconds_t Second
One second represented in nanoseconds.
int64_t nanoseconds_t
Nanoseconds.
core::nanoseconds_t interval_duration
Measurement interval duration. All metrics below are computed for a sliding window of this length.
core::nanoseconds_t clock_offset
Estimated offset of remote clock relative to local clock. Estimated based on RTT and local/remote tim...
core::nanoseconds_t rtt
Estimated round-trip time.
Various units used in packets.