blob: cd0af1048cf570e41ac3dcc443c786973308c00c [file] [log] [blame] [edit]
// Copyright 2021 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.
library fuchsia.fakeclock.test;
using zx;
/// An example protocol for demonstrating fake time.
[Discoverable]
protocol Example {
/// Gets the current monotonic time.
GetMonotonic() -> (zx.time time);
/// Wait until the given absolute time, then return.
WaitUntil(zx.time timeout) -> ();
/// Wait for `duration` time, then return.
WaitFor(zx.duration duration) -> ();
};