blob: 5caf1fd99c95dd85a1b4d0aa6a439d63c216d84f [file] [log] [blame]
Benjamin Lermanf13ab842018-09-18 16:25:15 +02001// 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 Robinson8b1cdec2019-10-17 20:51:33 +00005#include "src/lib/timekeeper/test_clock.h"
Benjamin Lermanf13ab842018-09-18 16:25:15 +02006
7namespace timekeeper {
8
9TestClock::TestClock() = default;
10
11TestClock::~TestClock() = default;
12
Satsuki Ueno14481392020-12-22 19:12:23 +000013zx_status_t TestClock::GetUtcTime(zx_time_t* time) const {
14 *time = current_time_;
15 return ZX_OK;
16}
17
Benjamin Lermanf13ab842018-09-18 16:25:15 +020018zx_time_t TestClock::GetMonotonicTime() const { return current_time_; }
19
20} // namespace timekeeper