#[repr(u32)]pub enum ClockId {
Monotonic = 0,
UTC = 1,
Thread = 2,
}
Expand description
An identifier to select a particular clock. See zx_time_get for more information about the possible values.
Variants§
Monotonic = 0
The number of nanoseconds since the system was powered on. Corresponds to
ZX_CLOCK_MONOTONIC
.
UTC = 1
The number of wall clock nanoseconds since the Unix epoch (midnight on January 1 1970) in UTC. Corresponds to ZX_CLOCK_UTC.
Thread = 2
The number of nanoseconds the current thread has been running for. Corresponds to ZX_CLOCK_THREAD.
Trait Implementations§
impl Copy for ClockId
impl Eq for ClockId
impl StructuralPartialEq for ClockId
Auto Trait Implementations§
impl Freeze for ClockId
impl RefUnwindSafe for ClockId
impl Send for ClockId
impl Sync for ClockId
impl Unpin for ClockId
impl UnwindSafe for ClockId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more