Type Alias zx::MonotonicTicks

source ·
pub type MonotonicTicks = Instant<MonotonicTimeline, TicksUnit>;
Expand description

A timestamp from system ticks on the monotonic timeline. Does not advance while the system is suspended.

Aliased Type§

struct MonotonicTicks(/* private fields */);

Implementations§

source§

impl MonotonicTicks

source

pub fn get() -> Self

Read the number of high-precision timer ticks on the monotonic timeline. These ticks may be processor cycles, high speed timer, profiling timer, etc. They do not advance while the system is suspended.

Wraps the zx_ticks_get syscall.