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
1 local cpuCount = getCPUCount()
2
3 print("CPU count: " .. cpuCount)