blob: 865562369fa217a4fae11a4c051bbc9ddecebc87 [file] [log] [blame]
[email protected]f10de7ec2012-10-27 02:18:101// 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
3// found in the LICENSE file.
4
5#include "net/quic/quic_clock.h"
6
[email protected]f002abb2013-06-28 02:30:217#include "base/time/time.h"
[email protected]f10de7ec2012-10-27 02:18:108
9namespace net {
10
11QuicClock::QuicClock() {
12}
13
14QuicClock::~QuicClock() {}
15
[email protected]9db443912013-02-25 05:27:0316QuicTime QuicClock::ApproximateNow() const {
17 // Chrome does not have a distinct notion of ApproximateNow().
18 return Now();
19}
20
[email protected]2a960e02012-11-11 14:48:1021QuicTime QuicClock::Now() const {
22 return QuicTime(base::TimeTicks::Now());
[email protected]f10de7ec2012-10-27 02:18:1023}
24
[email protected]2532de12013-05-09 12:29:3325QuicWallTime QuicClock::WallNow() const {
[email protected]9d9ae552013-06-05 01:21:2426 return QuicWallTime::FromUNIXSeconds(base::Time::Now().ToTimeT());
[email protected]55582812012-12-19 01:34:4127}
28
[email protected]f10de7ec2012-10-27 02:18:1029} // namespace net