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/time/default_tick_clock.h" 6 7 #include "base/no_destructor.h" 8 9 namespace base { 10 11 DefaultTickClock::~DefaultTickClock() = default; 12 NowTicks() const13TimeTicks DefaultTickClock::NowTicks() const { 14 return TimeTicks::Now(); 15 } 16 17 // static GetInstance()18const DefaultTickClock* DefaultTickClock::GetInstance() { 19 static const base::NoDestructor<DefaultTickClock> default_tick_clock; 20 return default_tick_clock.get(); 21 } 22 23 } // namespace base 24