blob: 3492ca6766d7a9098e8e8a532d4d0b48e52d0f77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// 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
|