David Zeuthen | f413fe5 | 2013-04-22 14:04:39 -0700 | [diff] [blame] | 1 | // 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 | |
| 5 | #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_CLOCK_H__ |
| 6 | #define CHROMEOS_PLATFORM_UPDATE_ENGINE_CLOCK_H__ |
| 7 | |
| 8 | #include "update_engine/clock_interface.h" |
| 9 | |
| 10 | namespace chromeos_update_engine { |
| 11 | |
| 12 | // Implements a clock. |
| 13 | class Clock : public ClockInterface { |
| 14 | public: |
| 15 | Clock() {} |
| 16 | |
| 17 | virtual base::Time GetWallclockTime(); |
| 18 | |
| 19 | virtual base::Time GetMonotonicTime(); |
| 20 | |
David Zeuthen | 3c55abd | 2013-10-14 12:48:03 -0700 | [diff] [blame] | 21 | virtual base::Time GetBootTime(); |
| 22 | |
David Zeuthen | f413fe5 | 2013-04-22 14:04:39 -0700 | [diff] [blame] | 23 | private: |
| 24 | |
| 25 | DISALLOW_COPY_AND_ASSIGN(Clock); |
| 26 | }; |
| 27 | |
| 28 | } // namespace chromeos_update_engine |
| 29 | |
| 30 | #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_CLOCK_H__ |