summaryrefslogtreecommitdiffstats
path: root/net/quic/quic_clock.cc
blob: 32d99917f33991eca3c6ee9c894f6d8eb6ced2de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "net/quic/quic_clock.h"

#include "base/time.h"

namespace net {

QuicClock::QuicClock() {
}

QuicClock::~QuicClock() {}

QuicTime QuicClock::Now() const {
  return QuicTime(base::TimeTicks::Now());
}

QuicTime::Delta QuicClock::NowAsDeltaSinceUnixEpoch() const {
  return QuicTime::Delta(base::Time::Now() - base::Time::UnixEpoch());
}

}  // namespace net