blob: b554a95eaabd8c2f3a0547fa84b7e5c738be0d8c [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 "platform/scheduler/base/lazy_now.h"
#include "base/time/tick_clock.h"
#include "platform/scheduler/base/task_queue_manager.h"
namespace blink {
namespace scheduler {
base::TimeTicks LazyNow::Now() {
if (now_.is_null())
now_ = tick_clock_->NowTicks();
return now_;
}
} // namespace scheduler
} // namespace blink