| 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 #include "net/quic/core/quic_clock.h" | 5 #include "net/quic/platform/api/quic_clock.h" |
| 6 | 6 |
| 7 #include "base/time/time.h" | 7 #include "base/time/time.h" |
| 8 | 8 |
| 9 namespace net { | 9 namespace net { |
| 10 | 10 |
| 11 QuicClock::QuicClock() {} | 11 QuicClock::QuicClock() {} |
| 12 | 12 |
| 13 QuicClock::~QuicClock() {} | 13 QuicClock::~QuicClock() {} |
| 14 | 14 |
| 15 QuicTime QuicClock::ApproximateNow() const { | 15 QuicTime QuicClock::ApproximateNow() const { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 39 // | 39 // |
| 40 // result = Now() - (WallNow() - walltime) | 40 // result = Now() - (WallNow() - walltime) |
| 41 return Now() - QuicTime::Delta::FromMicroseconds( | 41 return Now() - QuicTime::Delta::FromMicroseconds( |
| 42 WallNow() | 42 WallNow() |
| 43 .Subtract(QuicTime::Delta::FromMicroseconds( | 43 .Subtract(QuicTime::Delta::FromMicroseconds( |
| 44 walltime.ToUNIXMicroseconds())) | 44 walltime.ToUNIXMicroseconds())) |
| 45 .ToUNIXMicroseconds()); | 45 .ToUNIXMicroseconds()); |
| 46 } | 46 } |
| 47 | 47 |
| 48 } // namespace net | 48 } // namespace net |
| OLD | NEW |