blob: 0cb73351f2acae544d905d313aa94f31ab835aef [file] [log] [blame]
Greg Kraynov2d33cfb2018-05-24 20:02:041// Copyright 2018 The Chromium Authors. All rights reserved.
alexclarke1794435f2015-07-23 11:50:352// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Gabriel Charetteaccb9342022-08-03 23:46:265#include "base/task/common/lazy_now.h"
alexclarke1794435f2015-07-23 11:50:356
David Dorwin3f503b82022-04-20 04:07:037#include "base/check.h"
alexclarkef65eb2d2015-11-03 18:24:168#include "base/time/tick_clock.h"
Anton Bikineev7dd58ad2021-05-18 01:01:399#include "third_party/abseil-cpp/absl/types/optional.h"
alexclarke1794435f2015-07-23 11:50:3510
Greg Kraynov8f4784462018-05-14 10:08:2111namespace base {
Greg Kraynov1f358aca2018-04-27 18:51:3312
Alex Attar9fcc01e2022-05-20 14:01:2713LazyNow::LazyNow(TimeTicks now) : now_(now), tick_clock_(nullptr) {}
Greg Kraynov1f358aca2018-04-27 18:51:3314
Alex Attar9fcc01e2022-05-20 14:01:27