pub struct CyclesInstant { /* private fields */ }Implementations§
Source§impl CyclesInstant
impl CyclesInstant
Sourcepub fn cycles_since(&self, other: Self) -> Cycles
pub fn cycles_since(&self, other: Self) -> Cycles
Calculate the number of cpu cycles between two recordings
§Panics
If the two records are not the same cpu, an error will be returned.
Sourcepub fn cycles_since_checked(&self, other: Self) -> Result<Cycles>
pub fn cycles_since_checked(&self, other: Self) -> Result<Cycles>
Calculate the number of cpu cycles between two recordings
§Errors
If the two records are not the same cpu, an error will be returned
Trait Implementations§
Source§impl Clone for CyclesInstant
impl Clone for CyclesInstant
Source§fn clone(&self) -> CyclesInstant
fn clone(&self) -> CyclesInstant
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CyclesInstant
impl Debug for CyclesInstant
Source§impl Sub for CyclesInstant
impl Sub for CyclesInstant
impl Copy for CyclesInstant
Auto Trait Implementations§
impl Freeze for CyclesInstant
impl RefUnwindSafe for CyclesInstant
impl Send for CyclesInstant
impl Sync for CyclesInstant
impl Unpin for CyclesInstant
impl UnwindSafe for CyclesInstant
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