pub struct ProcessCpuTimes {
pub user_time_100ns: u64,
pub kernel_time_100ns: u64,
pub total_time_100ns: u64,
}Expand description
Process CPU time counters.
Values are cumulative from process start, in 100-nanosecond units.
Fields§
§user_time_100ns: u64Cumulative time spent in user mode (100ns units).
kernel_time_100ns: u64Cumulative time spent in kernel mode (100ns units).
total_time_100ns: u64Sum of user and kernel times (100ns units).
Trait Implementations§
Source§impl Clone for ProcessCpuTimes
impl Clone for ProcessCpuTimes
Source§fn clone(&self) -> ProcessCpuTimes
fn clone(&self) -> ProcessCpuTimes
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 ProcessCpuTimes
impl Debug for ProcessCpuTimes
Source§impl Default for ProcessCpuTimes
impl Default for ProcessCpuTimes
Source§fn default() -> ProcessCpuTimes
fn default() -> ProcessCpuTimes
Returns the “default value” for a type. Read more
impl Copy for ProcessCpuTimes
Auto Trait Implementations§
impl Freeze for ProcessCpuTimes
impl RefUnwindSafe for ProcessCpuTimes
impl Send for ProcessCpuTimes
impl Sync for ProcessCpuTimes
impl Unpin for ProcessCpuTimes
impl UnsafeUnpin for ProcessCpuTimes
impl UnwindSafe for ProcessCpuTimes
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