Files
simple-rust-tests/__misc/num_cpus/src/main.rs
2020-10-17 12:03:44 +08:00

6 lines
124 B
Rust

fn main() {
println!("num of cpus: {}", num_cpus::get());
println!("num of cpus: {}", num_cpus::get_physical());
}