Expand description

Limit the CPU usage of a process.

Example

use cpulimiter::{CpuLimit, Pid};

let handle = CpuLimit::new(Pid::from(1048), 10.0).unwrap();
handle.set_limit(42.0);
handle.stop();

Structs

A handle to manage the CPU limit enforced on the target process.

The representation of a process running on the system.