use std::{thread, time::Duration};
use windows_eco::process::ProcessPowerThrottlingState;
fn main() -> Result<(), windows_eco::Error> {
let mut state = ProcessPowerThrottlingState::from_windows()?;
println!("{state}");
state.enable_all_throttling();
state.apply()?;
println!("{state}");
thread::sleep(Duration::from_secs(30));
Ok(())
}