ark::time::TimeEstimator

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


Takes in pairs of timestamps (the local time the measurement ended, the remote time measurement, and the latency between the two), and produces a time model that can be used to transform times between the two.

Methods

  • TimeEstimator()
    Initializes with the default configuration.

  • TimeEstimator(TimeEstimatorConfiguration config)
    Initializes with the given configuration.

  • void consider_time_pair(const typename LocalClock::time_point & local_time, const typename RemoteClock::time_point & remote_time, std::chrono::nanoseconds latency)
    Adds a new time pair to the system. See the discussion around TimePair above for the definition of these parameters.

  • TimeModel< LocalClock, RemoteClock > estimate()
    Based on the internal time measurements, produce a time model that can transform time from the local time frame to the remote time frame.

  • bool can_estimate()
    Returns true if this estimator can produce an estimate, or false otherwise. This is based on the number of samples/pairs considered.

  • TimeEstimatorStatistics statistics()
    Returns statistics and debugging information related to the time estimator.