CppBenchmark 1.0.5.0
C++ Benchmark Library
|
System management static class. More...
#include <system.h>
Public Member Functions | |
System ()=delete | |
System (const System &)=delete | |
System (System &&)=delete | |
~System ()=delete | |
System & | operator= (const System &)=delete |
System & | operator= (System &&)=delete |
Static Public Member Functions | |
static std::string | CpuArchitecture () |
CPU architecture string. | |
static int | CpuLogicalCores () |
CPU logical cores count. | |
static int | CpuPhysicalCores () |
CPU physical cores count. | |
static std::pair< int, int > | CpuTotalCores () |
CPU total cores count. | |
static int64_t | CpuClockSpeed () |
CPU clock speed in Hz. | |
static bool | CpuHyperThreading () |
Is CPU Hyper-Threading enabled? | |
static int64_t | RamTotal () |
Total RAM in bytes. | |
static int64_t | RamFree () |
Free RAM in bytes. | |
static uint64_t | CurrentThreadId () |
Current thread Id. | |
static uint64_t | Timestamp () |
Get the current timestamp in nanoseconds. | |
static uint64_t | MulDiv64 (uint64_t operant, uint64_t multiplier, uint64_t divider) |
Calculate (operant * multiplier / divider) with 64-bit unsigned integer values. | |
System management static class.
Provides system management functionality to get CPU properties, RAM properties, current thread Id, etc.
|
delete |
|
delete |
|
delete |
|
delete |
|
static |
CPU architecture string.
Definition at line 129 of file system.cpp.
|
static |
CPU clock speed in Hz.
Definition at line 270 of file system.cpp.
|
static |
Is CPU Hyper-Threading enabled?
Definition at line 320 of file system.cpp.
|
static |
CPU logical cores count.
Definition at line 173 of file system.cpp.
|
static |
CPU physical cores count.
Definition at line 178 of file system.cpp.
|
static |
CPU total cores count.
Definition at line 183 of file system.cpp.
|
static |
Current thread Id.
Definition at line 388 of file system.cpp.
|
static |
Calculate (operant * multiplier / divider) with 64-bit unsigned integer values.
Definition at line 450 of file system.cpp.
|
static |
Free RAM in bytes.
Definition at line 352 of file system.cpp.
|
static |
Total RAM in bytes.
Definition at line 326 of file system.cpp.
|
static |
Get the current timestamp in nanoseconds.
Definition at line 399 of file system.cpp.