[][src]Function psutil::system::cpu_percent

pub fn cpu_percent(interval: f64) -> Result<f64>

Return a float representing the current system-wide CPU utilization as percentage.

Interval must be > 0 seconds. If interval < 0.1, the result of this function will be meaningless. The function compares system CPU times elapsed before and after the interval (blocking).

Use information contained in '/proc/stat'