CppBenchmark
1.0.4.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. More... | |
static int | CpuLogicalCores () |
CPU logical cores count. More... | |
static int | CpuPhysicalCores () |
CPU physical cores count. More... | |
static std::pair< int, int > | CpuTotalCores () |
CPU total cores count. More... | |
static int64_t | CpuClockSpeed () |
CPU clock speed in Hz. More... | |
static bool | CpuHyperThreading () |
Is CPU Hyper-Threading enabled? More... | |
static int64_t | RamTotal () |
Total RAM in bytes. More... | |
static int64_t | RamFree () |
Free RAM in bytes. More... | |
static uint64_t | CurrentThreadId () |
Current thread Id. More... | |
static uint64_t | Timestamp () |
Get the current timestamp in nanoseconds. More... | |
static uint64_t | MulDiv64 (uint64_t operant, uint64_t multiplier, uint64_t divider) |
Calculate (operant * multiplier / divider) with 64-bit unsigned integer values. More... | |
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 128 of file system.cpp.
|
static |
CPU clock speed in Hz.
Definition at line 255 of file system.cpp.
|
static |
Is CPU Hyper-Threading enabled?
Definition at line 299 of file system.cpp.
|
static |
CPU logical cores count.
Definition at line 172 of file system.cpp.
|
static |
CPU physical cores count.
Definition at line 177 of file system.cpp.
|
static |
CPU total cores count.
Definition at line 182 of file system.cpp.
|
static |
Current thread Id.
Definition at line 367 of file system.cpp.
|
static |
Calculate (operant * multiplier / divider) with 64-bit unsigned integer values.
Definition at line 429 of file system.cpp.
|
static |
Free RAM in bytes.
Definition at line 331 of file system.cpp.
|
static |
Total RAM in bytes.
Definition at line 305 of file system.cpp.
|
static |
Get the current timestamp in nanoseconds.
Definition at line 378 of file system.cpp.