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.
pub fn used() -> Result<Percent>The busy share over the next 100 ms: usage()?.used(). Blocks for
DEFAULT_WINDOW.
println!("CPU {}", sys_lib::cpu::used()?); // "12.4%"As Sampler::sample.