pub struct ThreadTimes {
pub cpu_ns: u64,
pub voluntary_switches: Option<u64>,
}Expand description
CPU time used by the calling thread so far.
Fields§
§cpu_ns: u64User plus system CPU time, nanoseconds.
voluntary_switches: Option<u64>Voluntary context switches so far, where the platform counts them per thread (Linux).
Trait Implementations§
Source§impl Clone for ThreadTimes
impl Clone for ThreadTimes
impl Copy for ThreadTimes
Source§impl Debug for ThreadTimes
impl Debug for ThreadTimes
Source§impl Default for ThreadTimes
impl Default for ThreadTimes
impl Eq for ThreadTimes
Source§impl PartialEq for ThreadTimes
impl PartialEq for ThreadTimes
impl StructuralPartialEq for ThreadTimes
Auto Trait Implementations§
impl Forget for ThreadTimes
impl Freeze for ThreadTimes
impl Move for ThreadTimes
impl RefUnwindSafe for ThreadTimes
impl Send for ThreadTimes
impl Sync for ThreadTimes
impl Unpin for ThreadTimes
impl UnsafeUnpin for ThreadTimes
impl UnwindSafe for ThreadTimes
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