get_total_cpu_cores

Function get_total_cpu_cores 

Source
pub fn get_total_cpu_cores() -> usize
Expand description

Get the total CPU cores. The result will be rounded to the nearest integer. For example, if the total CPU is 1.5 cores(1500 millicores), the result will be 2.