#include "rtc_base/rate_tracker.h"
#include <algorithm>
#include "rtc_base/checks.h"
#include "rtc_base/time_utils.h"
namespace rtc {
static const int64_t kTimeUnset = …;
RateTracker::RateTracker(int64_t bucket_milliseconds, size_t bucket_count)
: … { … }
RateTracker::~RateTracker() { … }
double RateTracker::ComputeRateForInterval(
int64_t interval_milliseconds) const { … }
double RateTracker::ComputeTotalRate() const { … }
int64_t RateTracker::TotalSampleCount() const { … }
void RateTracker::AddSamples(int64_t sample_count) { … }
void RateTracker::AddSamplesAtTime(int64_t current_time_ms,
int64_t sample_count) { … }
int64_t RateTracker::Time() const { … }
void RateTracker::EnsureInitialized() { … }
size_t RateTracker::NextBucketIndex(size_t bucket_index) const { … }
}