OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // QuicTime represents one point in time, stored in microsecond resolution. | 5 // QuicTime represents one point in time, stored in microsecond resolution. |
6 // QuicTime is monotonically increasing, even across system clock adjustments. | 6 // QuicTime is monotonically increasing, even across system clock adjustments. |
7 // The epoch (time 0) of QuicTime is unspecified. | 7 // The epoch (time 0) of QuicTime is unspecified. |
8 // | 8 // |
9 // This implementation wraps the classes base::TimeTicks and base::TimeDelta. | 9 // This implementation wraps the classes base::TimeTicks and base::TimeDelta. |
10 | 10 |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 inline QuicTime operator-(QuicTime lhs, QuicTime::Delta rhs) { | 259 inline QuicTime operator-(QuicTime lhs, QuicTime::Delta rhs) { |
260 return QuicTime(lhs.time_ - rhs.time_offset_); | 260 return QuicTime(lhs.time_ - rhs.time_offset_); |
261 } | 261 } |
262 inline QuicTime::Delta operator-(QuicTime lhs, QuicTime rhs) { | 262 inline QuicTime::Delta operator-(QuicTime lhs, QuicTime rhs) { |
263 return QuicTime::Delta(lhs.time_ - rhs.time_); | 263 return QuicTime::Delta(lhs.time_ - rhs.time_); |
264 } | 264 } |
265 | 265 |
266 } // namespace net | 266 } // namespace net |
267 | 267 |
268 #endif // NET_QUIC_QUIC_TIME_H_ | 268 #endif // NET_QUIC_QUIC_TIME_H_ |
OLD | NEW |