Skip to main content

host_cpu_usage

Function host_cpu_usage 

Source
pub fn host_cpu_usage(interval: Duration) -> Result<f64>
Expand description

Calculate overall host CPU usage percentage over a sampling interval.

The returned value is in the range [0.0, 100.0].