Type Alias fuchsia_zircon::MonotonicTime

source ·
pub type MonotonicTime = Time<MonotonicTimeline>;

Aliased Type§

struct MonotonicTime(/* private fields */);

Implementations§

source§

impl MonotonicTime

source

pub fn get() -> Self

Get the current monotonic time.

Wraps the zx_clock_get_monotonic syscall.

source

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.

source

pub fn sleep(self)

Sleep until the given time.

Wraps the zx_nanosleep syscall.