Lua:getCPUCount

From Cheat Engine
Jump to navigation Jump to search

<> Lua API Reference

function getCPUCount() : integer

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)

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Thread Related Lua Functions

CPU information, process threads, main-thread execution, and queued callbacks