Skip to main content

used

Function used 

Source
pub fn used() -> Result<Percent>
Expand description

The busy share over the next 100 ms: usage()?.used(). Blocks for DEFAULT_WINDOW.

println!("CPU {}", sys_lib::cpu::used()?);   // "12.4%"

ยงErrors

As Sampler::sample.