| 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 |
| 11 #ifndef NET_QUIC_QUIC_TIME_H_ | 11 #ifndef NET_QUIC_CORE_QUIC_TIME_H_ |
| 12 #define NET_QUIC_QUIC_TIME_H_ | 12 #define NET_QUIC_CORE_QUIC_TIME_H_ |
| 13 | 13 |
| 14 #include <stdint.h> | 14 #include <stdint.h> |
| 15 | 15 |
| 16 #include <cmath> | 16 #include <cmath> |
| 17 #include <ostream> | 17 #include <ostream> |
| 18 | 18 |
| 19 #include "base/compiler_specific.h" | 19 #include "base/compiler_specific.h" |
| 20 #include "base/time/time.h" | 20 #include "base/time/time.h" |
| 21 #include "net/base/net_export.h" | 21 #include "net/base/net_export.h" |
| 22 | 22 |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 } | 264 } |
| 265 | 265 |
| 266 // Override stream output operator for gtest. | 266 // Override stream output operator for gtest. |
| 267 inline std::ostream& operator<<(std::ostream& output, | 267 inline std::ostream& operator<<(std::ostream& output, |
| 268 const QuicTime::Delta delta) { | 268 const QuicTime::Delta delta) { |
| 269 output << delta.ToDebugValue(); | 269 output << delta.ToDebugValue(); |
| 270 return output; | 270 return output; |
| 271 } | 271 } |
| 272 } // namespace net | 272 } // namespace net |
| 273 | 273 |
| 274 #endif // NET_QUIC_QUIC_TIME_H_ | 274 #endif // NET_QUIC_CORE_QUIC_TIME_H_ |
| OLD | NEW |