pub struct CpuTime(/* private fields */);
Expand description
System CPU time.
§Compatibility
For Linux additional information can be retrieved with CpuTimeExt extension trait.
Implementations§
Trait Implementations§
Source§impl CpuTimeExt for CpuTime
impl CpuTimeExt for CpuTime
Source§fn nice(&self) -> Time
fn nice(&self) -> Time
Returns time spent by niced (prioritized) processes executing in user mode,
this also includes guest_nice time.
Source§fn steal(&self) -> Time
fn steal(&self) -> Time
Returns time spent by other operating systems running in a virtualized environment.
Auto Trait Implementations§
impl Freeze for CpuTime
impl !RefUnwindSafe for CpuTime
impl Send for CpuTime
impl Sync for CpuTime
impl Unpin for CpuTime
impl !UnwindSafe for CpuTime
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