fuchsia_runtime

Function swap_utc_clock_handle

Source
pub fn swap_utc_clock_handle(new_clock: UtcClock) -> Result<UtcClock, 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.