gistlib
main.rsextern crate sys_info; fn main() { match sys_info::cpu_speed() { Ok(speed) => println!("CPU Frequency: {} MHz", speed), Err(e) => eprintln!("Error: {}", e), } } 186 chars9 lines
extern crate sys_info; fn main() { match sys_info::cpu_speed() { Ok(speed) => println!("CPU Frequency: {} MHz", speed), Err(e) => eprintln!("Error: {}", e), } }
gistlibby LogSnag