Lua:getCPUCount
Jump to navigation
Jump to search
Returns the number of CPUs.
Function Parameters
This function has no parameters.
Returns
integer — The number of CPUs.
Examples
local cpuCount = getCPUCount()
print("CPU count: " .. cpuCount)