| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // A convenience class to store rtt samples and calculate smoothed rtt. | 5 // A convenience class to store rtt samples and calculate smoothed rtt. |
| 6 | 6 |
| 7 #ifndef NET_QUIC_CONGESTION_CONTROL_RTT_STATS_H_ | 7 #ifndef NET_QUIC_CONGESTION_CONTROL_RTT_STATS_H_ |
| 8 #define NET_QUIC_CONGESTION_CONTROL_RTT_STATS_H_ | 8 #define NET_QUIC_CONGESTION_CONTROL_RTT_STATS_H_ |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 QuicTime::Delta latest_rtt_; | 53 QuicTime::Delta latest_rtt_; |
| 54 QuicTime::Delta min_rtt_; | 54 QuicTime::Delta min_rtt_; |
| 55 QuicTime::Delta smoothed_rtt_; | 55 QuicTime::Delta smoothed_rtt_; |
| 56 // Mean RTT deviation during this session. | 56 // Mean RTT deviation during this session. |
| 57 // Approximation of standard deviation, the error is roughly 1.25 times | 57 // Approximation of standard deviation, the error is roughly 1.25 times |
| 58 // larger than the standard deviation, for a normally distributed signal. | 58 // larger than the standard deviation, for a normally distributed signal. |
| 59 QuicTime::Delta mean_deviation_; | 59 QuicTime::Delta mean_deviation_; |
| 60 int64 initial_rtt_us_; | 60 int64 initial_rtt_us_; |
| 61 |
| 62 DISALLOW_COPY_AND_ASSIGN(RttStats); |
| 61 }; | 63 }; |
| 62 | 64 |
| 63 } // namespace net | 65 } // namespace net |
| 64 | 66 |
| 65 #endif // NET_QUIC_CONGESTION_CONTROL_RTT_STATS_H_ | 67 #endif // NET_QUIC_CONGESTION_CONTROL_RTT_STATS_H_ |
| OLD | NEW |