Expand description
module for accessing CPU related information.
Structs§
- CpuTime
- Struct to represent CPU times. All values are in seconds.
Functions§
- cpu_
count - Return the number of CPUs in the system or
None
if undetermined. If the param is set totrue
, the result will be the number of logical CPUs,false
will return the number of physical CPUs. - per_
cpu_ time - Return per CPU times as a vector of
CpuTime
. - system_
time - Return whole system CPU times as
CpuTime
.