pub struct CpuDuration { /* private fields */ }
Expand description
Like std::time::Duration
, but with information about the cpu usage stats.
The way to get this is to subtract one CpuInstant
from another.
Implementations§
Trait Implementations§
Source§impl Clone for CpuDuration
impl Clone for CpuDuration
Source§fn clone(&self) -> CpuDuration
fn clone(&self) -> CpuDuration
Returns a copy 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 CpuDuration
impl Debug for CpuDuration
impl Copy for CpuDuration
Auto Trait Implementations§
impl Freeze for CpuDuration
impl RefUnwindSafe for CpuDuration
impl Send for CpuDuration
impl Sync for CpuDuration
impl Unpin for CpuDuration
impl UnwindSafe for CpuDuration
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