#include "quiche/quic/core/congestion_control/rtt_stats.h"
#include <algorithm>
#include <cstdlib>
#include "quiche/quic/platform/api/quic_flag_utils.h"
#include "quiche/quic/platform/api/quic_flags.h"
#include "quiche/quic/platform/api/quic_logging.h"
namespace quic {
namespace {
const float kAlpha = …;
const float kOneMinusAlpha = …;
const float kBeta = …;
const float kOneMinusBeta = …;
}
RttStats::RttStats()
: … { … }
void RttStats::ExpireSmoothedMetrics() { … }
bool RttStats::UpdateRtt(QuicTime::Delta send_delta, QuicTime::Delta ack_delay,
QuicTime now) { … }
void RttStats::OnConnectionMigration() { … }
QuicTime::Delta RttStats::GetStandardOrMeanDeviation() const { … }
void RttStats::StandardDeviationCalculator::OnNewRttSample(
QuicTime::Delta rtt_sample, QuicTime::Delta smoothed_rtt) { … }
QuicTime::Delta
RttStats::StandardDeviationCalculator::CalculateStandardDeviation() const { … }
void RttStats::CloneFrom(const RttStats& stats) { … }
}