blob: 49ec45445fc3893e002651a6a170338531e53ef3 [file] [log] [blame]
// 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() -> (struct {
time zx.time;
});
/// Wait until the given absolute time, then return.
WaitUntil(struct {
timeout zx.time;
}) -> ();
/// Wait for `duration` time, then return.
WaitFor(struct {
duration zx.duration;
}) -> ();
};