Function fuchsia_runtime::swap_utc_clock_handle
source · pub fn swap_utc_clock_handle(new_clock: Clock) -> Result<Clock, Status>
Expand description
Swaps the current process-global UTC clock with new_clock
, returning
the old clock on success.
If new_clock
is a valid handle but does not have the ZX_RIGHT_READ right,
an error is returned and new_clock
is dropped.