Skip to main content

process_cpu_ns

Function process_cpu_ns 

Source
pub fn process_cpu_ns() -> u64
Expand description

CPU time (user and system) used by the whole process so far, in nanoseconds: CLOCK_PROCESS_CPUTIME_ID on Unix, GetProcessTimes on Windows (100 ns steps, updated at the scheduler tick). For measurements such as “an idle server uses no CPU”.