Type Alias fuchsia_zircon::MonotonicTime
source · pub type MonotonicTime = Time<MonotonicTimeline>;
Aliased Type§
struct MonotonicTime(/* private fields */);
Implementations§
source§impl MonotonicTime
impl MonotonicTime
sourcepub fn get() -> Self
pub fn get() -> Self
Get the current monotonic time.
Wraps the zx_clock_get_monotonic syscall.
sourcepub fn after(duration: Duration) -> Self
pub fn after(duration: Duration) -> Self
Compute a deadline for the time in the future that is the given Duration
away.
Wraps the zx_deadline_after syscall.
sourcepub fn sleep(self)
pub fn sleep(self)
Sleep until the given time.
Wraps the zx_nanosleep syscall.