Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: base/default_tick_clock.cc

Issue 11607003: Add a Clock and TickClock interface for mocking out time (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/default_tick_clock.h"
6 #include "base/lazy_instance.h"
7
8 namespace base {
9
10 namespace {
11
12 LazyInstance<DefaultTickClock> default_tick_clock = LAZY_INSTANCE_INITIALIZER;
Ryan Sleevi 2012/12/17 19:54:46 DESIGN: Same here
akalin 2012/12/17 22:38:31 also removed this
13
14 } // namespace
15
16 DefaultTickClock::~DefaultTickClock() {}
17
18 TimeTicks DefaultTickClock::NowTicks() {
19 return TimeTicks::Now();
20 }
21
22 // static
23 DefaultTickClock* DefaultTickClock::Get() {
24 return default_tick_clock.Pointer();
25 }
26
27 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698