qb
2.0.0.0
C++17 Actor Framework
|
Provides platform-independent access to CPU information. More...
#include <cpu.h>
Public Member Functions | |
CPU (const CPU &)=delete | |
CPU (CPU &&) noexcept=delete | |
CPU & | operator= (const CPU &)=delete |
CPU & | operator= (CPU &&) noexcept=delete |
Static Public Member Functions | |
static std::string | Architecture () |
Gets the CPU architecture name/description. | |
static int | Affinity () |
Gets the number of logical processors available to the process. | |
static int | LogicalCores () |
Gets the number of logical CPU cores. | |
static int | PhysicalCores () |
Gets the number of physical CPU cores. | |
static std::pair< int, int > | TotalCores () |
Gets both logical and physical core counts. | |
static int64_t | ClockSpeed () |
Gets the CPU clock speed in Hz. | |
static bool | HyperThreading () |
Checks if hyperthreading is enabled. |
Provides platform-independent access to CPU information.
This class contains static methods to query CPU information such as architecture, logical/physical core counts, clock speed, and more.
|
inlinestatic |
|
inlinestatic |
Gets the number of logical processors available to the process.
|
inlinestatic |
Gets the number of logical CPU cores.
|
inlinestatic |
Gets the number of physical CPU cores.
|
inlinestatic |
Gets both logical and physical core counts.
|
inlinestatic |
|
inlinestatic |
Checks if hyperthreading is enabled.