root/remoting/client/chromoting_stats.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. round_trip_ms_

// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "remoting/client/chromoting_stats.h"

namespace {

// The default window of bandwidth and frame rate in seconds.
const int kTimeWindow = 3;

// We take the last 10 latency numbers and report the average.
const int kLatencyWindow = 10;

}  // namespace

namespace remoting {

ChromotingStats::ChromotingStats()
    : video_bandwidth_(base::TimeDelta::FromSeconds(kTimeWindow)),
      video_frame_rate_(base::TimeDelta::FromSeconds(kTimeWindow)),
      video_capture_ms_(kLatencyWindow),
      video_encode_ms_(kLatencyWindow),
      video_decode_ms_(kLatencyWindow),
      video_paint_ms_(kLatencyWindow),
      round_trip_ms_(kLatencyWindow) {
}

ChromotingStats::~ChromotingStats() {
}

}  // namespace remoting

/* [<][>][^][v][top][bottom][index][help] */