Skip to main content

thread_cpu_work

Function thread_cpu_work 

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

The calling thread’s CPU work so far, comparable only with other readings on the same thread: CPU nanoseconds on Unix, cycles on Windows (QueryThreadCycleTime). Excludes time spent waiting for a CPU. None where unavailable.