1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "remoting/client/chromoting_stats.h"
9 // We take the last 10 latency numbers and report the average.
10 const int kLatencySampleSize
= 10;
16 ChromotingStats::ChromotingStats()
18 base::TimeDelta::FromSeconds(kStatsUpdateFrequencyInSeconds
)),
20 base::TimeDelta::FromSeconds(kStatsUpdateFrequencyInSeconds
)),
22 base::TimeDelta::FromSeconds(kStatsUpdateFrequencyInSeconds
)),
23 video_capture_ms_(kLatencySampleSize
),
24 video_encode_ms_(kLatencySampleSize
),
25 video_decode_ms_(kLatencySampleSize
),
26 video_paint_ms_(kLatencySampleSize
),
27 round_trip_ms_(kLatencySampleSize
) {
30 ChromotingStats::~ChromotingStats() {
33 } // namespace remoting