#include <stddef.h>
#include <cmath>
#include <utility>
#include "cc/base/rolling_time_delta_history.h"
namespace cc {
RollingTimeDeltaHistory::RollingTimeDeltaHistory(size_t max_size)
: … { … }
RollingTimeDeltaHistory::~RollingTimeDeltaHistory() = default;
void RollingTimeDeltaHistory::InsertSample(base::TimeDelta time) { … }
void RollingTimeDeltaHistory::RemoveOldestSample() { … }
void RollingTimeDeltaHistory::Clear() { … }
base::TimeDelta RollingTimeDeltaHistory::Percentile(double percent) const { … }
base::TimeDelta RollingTimeDeltaHistory::ComputePercentile(
double percent) const { … }
}