Skip to main content

thread_cpu_ms

Function thread_cpu_ms 

Source
pub fn thread_cpu_ms() -> Option<u64>
Expand description

The CPU time this thread has used so far (user + system), from /proc/thread-self/stat; None where that file does not exist. Linux reports it in USER_HZ ticks, which is 100 on every architecture regardless of the kernel’s HZ.