Benjamin Lerman | f13ab84 | 2018-09-18 16:25:15 +0200 | [diff] [blame] | 1 | // Copyright 2018 The Fuchsia 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 | |
James Robinson | 8b1cdec | 2019-10-17 20:51:33 +0000 | [diff] [blame] | 5 | #include "src/lib/timekeeper/test_clock.h" |
Benjamin Lerman | f13ab84 | 2018-09-18 16:25:15 +0200 | [diff] [blame] | 6 | |
| 7 | namespace timekeeper { |
| 8 | |
| 9 | TestClock::TestClock() = default; |
| 10 | |
| 11 | TestClock::~TestClock() = default; |
| 12 | |
Satsuki Ueno | 1448139 | 2020-12-22 19:12:23 +0000 | [diff] [blame] | 13 | zx_status_t TestClock::GetUtcTime(zx_time_t* time) const { |
| 14 | *time = current_time_; |
| 15 | return ZX_OK; |
| 16 | } |
| 17 | |
Benjamin Lerman | f13ab84 | 2018-09-18 16:25:15 +0200 | [diff] [blame] | 18 | zx_time_t TestClock::GetMonotonicTime() const { return current_time_; } |
| 19 | |
| 20 | } // namespace timekeeper |