Skip to main content

Module utc

Module utc 

Source
Expand description

Accessors for the zx::Clock representing UTC, used by common operations. Standard library functions for accessing UTC or “wall clock time” all work by reading this clock.

Functions§

reference_get
Returns a handle to the currently assigned UTC clock, or a null handle if no such clock currently exists.
reference_swap
Atomically swap the clock handle provided with the current UTC reference.

Type Aliases§

UtcClock
The zx_libc crate does not provide the zx::Timeline type for UTC, but the functions here are generic over a supplied zx::Timeline type.