ark::time::TimeEstimatorConfiguration

Defined in header “ark/time/time_estimator.hh”.


Configuration related to the time estimator. This allows you to tune the filter a bit to your needs.

Variables

  • size_t maximum_time_pair_count= 32
    The maximum number of time pairs to consider at any point in time. Larger numbers might allow us to compute better drift, but also allow for “bad” values to stick around longer.

  • double maximum_age_s= 30.0
    The maximum age to consider a time pair. If a time pair is this many seconds older then the latest received time pair, it will be discarded. Things like drift tend to fluctuate over time, so this helps bound that error.

  • size_t minimum_time_pair_count= 16
    The minimum number of time pairs to keep while applying filtering. This prevents the filters from throwing away too many time pairs.

  • double median_latency_threshold_percent= 0.5
    The percentage above/below the median latency to discard time pairs. For example, if this is set to 0.5, and the median latency is 500ms, this will throw away any time pair that has a latency less then 250ms or greater than 750ms.