#include "cast/streaming/impl/clock_drift_smoother.h"
#include <cmath>
#include "util/chrono_helpers.h"
#include "util/osp_logging.h"
#include "util/saturate_cast.h"
namespace openscreen::cast {
namespace {
constexpr Clock::time_point kNullTime = …;
}
operator<<;
ClockDriftSmoother::ClockDriftSmoother(Clock::duration time_constant)
: … { … }
ClockDriftSmoother::~ClockDriftSmoother() = default;
Clock::duration ClockDriftSmoother::Current() const { … }
void ClockDriftSmoother::Reset(Clock::time_point now,
Clock::duration measured_offset) { … }
void ClockDriftSmoother::Update(Clock::time_point now,
Clock::duration measured_offset) { … }
constexpr std::chrono::seconds ClockDriftSmoother::kDefaultTimeConstant;
}