Type Alias zx::BootTicks

source ·
pub type BootTicks = Instant<BootTimeline, TicksUnit>;
Expand description

A timestamp from system ticks on the boot timeline. Advances while the system is suspended.

Aliased Type§

struct BootTicks(/* private fields */);

Implementations§

source§

impl BootTicks

source

pub fn get() -> Self

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

WARNING: this has been added in advance of https://fxrev.dev/1066674, the boot timeline is not yet available in the stable vdso. This currently uses the monotonic clock which is temporarily equivalent to the boot clock until the monotonic clock starts pausing during suspend in the near future. This will be migrated to the boot clock before the monotonic clock begins pausing during suspend.