Example:
auto logicalCores = cpuCount(true);
auto physicalCores = cpuCount(false);uint cpuCount(bool logical = true) @safeGets the number of CPU cores.
logical | If true, returns logical CPU count (including hyperthreading). If false, returns physical CPU count. |
Example:
auto logicalCores = cpuCount(true);
auto physicalCores = cpuCount(false);