pub struct Clock(/* private fields */);Expand description
Supported linux clocks that can be used within a perf_event instance.
See the clock_gettime(2) manpage for the full documentation on what
each clock value actually means.
Implementations§
Source§impl Clock
impl Clock
Sourcepub const BOOTTIME: Self
pub const BOOTTIME: Self
A clock that is identical to MONOTONIC except it also includes any
time during which the systems was suspended.
Sourcepub const MONOTONIC: Self
pub const MONOTONIC: Self
A clock that (roughly) corresponds to the time that the system has been running since it was booted. (On Linux, at least).
Sourcepub const MONOTONIC_RAW: Self
pub const MONOTONIC_RAW: Self
Similar to MONOTONIC but does not include NTP adjustments.
Trait Implementations§
impl Copy for Clock
impl Eq for Clock
impl StructuralPartialEq for Clock
Auto Trait Implementations§
impl Freeze for Clock
impl RefUnwindSafe for Clock
impl Send for Clock
impl Sync for Clock
impl Unpin for Clock
impl UnwindSafe for Clock
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