blob: 8d9202f3fbd073c15fedb1a92a0fad0a022dbfbf [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "garnet/public/lib/timekeeper/test_clock.h"
namespace timekeeper {
TestClock::TestClock() = default;
TestClock::~TestClock() = default;
zx_status_t TestClock::GetTime(zx_clock_t clock_id, zx_time_t* time) const {
*time = current_time_;
return ZX_OK;
}
zx_time_t TestClock::GetMonotonicTime() const { return current_time_; }
} // namespace timekeeper