blob: 3492ca6766d7a9098e8e8a532d4d0b48e52d0f77 [file] [log] [blame]
// Copyright 2015 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 "components/scheduler/base/lazy_now.h"
#include "base/time/tick_clock.h"
#include "components/scheduler/base/task_queue_manager.h"
namespace scheduler {
base::TimeTicks LazyNow::Now() {
if (now_.is_null())
now_ = tick_clock_->NowTicks();
return now_;
}
} // namespace scheduler