blob: d53ad342a667601ecbf1415b57072fd615725af0 [file] [log] [blame]
David Zeuthenf413fe52013-04-22 14:04:39 -07001// Copyright (c) 2013 The Chromium OS 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
Gilad Arnoldcf175a02014-07-10 16:48:47 -07005#ifndef UPDATE_ENGINE_CLOCK_H_
6#define UPDATE_ENGINE_CLOCK_H_
David Zeuthenf413fe52013-04-22 14:04:39 -07007
8#include "update_engine/clock_interface.h"
9
10namespace chromeos_update_engine {
11
12// Implements a clock.
13class Clock : public ClockInterface {
14 public:
15 Clock() {}
16
Alex Deymo610277e2014-11-11 21:18:11 -080017 base::Time GetWallclockTime() override;
David Zeuthenf413fe52013-04-22 14:04:39 -070018
Alex Deymo610277e2014-11-11 21:18:11 -080019 base::Time GetMonotonicTime() override;
David Zeuthenf413fe52013-04-22 14:04:39 -070020
Alex Deymo610277e2014-11-11 21:18:11 -080021 base::Time GetBootTime() override;
David Zeuthen3c55abd2013-10-14 12:48:03 -070022
David Zeuthenf413fe52013-04-22 14:04:39 -070023 private:
David Zeuthenf413fe52013-04-22 14:04:39 -070024 DISALLOW_COPY_AND_ASSIGN(Clock);
25};
26
27} // namespace chromeos_update_engine
28
Gilad Arnoldcf175a02014-07-10 16:48:47 -070029#endif // UPDATE_ENGINE_CLOCK_H_