9 #ifndef CPPBENCHMARK_SYSTEM_H
10 #define CPPBENCHMARK_SYSTEM_H
57 static uint64_t
MulDiv64(uint64_t operant, uint64_t multiplier, uint64_t divider);
System management static class.
System & operator=(System &&)=delete
static std::pair< int, int > CpuTotalCores()
CPU total cores count.
static uint64_t Timestamp()
Get the current timestamp in nanoseconds.
static int CpuPhysicalCores()
CPU physical cores count.
static std::string CpuArchitecture()
CPU architecture string.
System(const System &)=delete
static uint64_t CurrentThreadId()
Current thread Id.
static int64_t RamFree()
Free RAM in bytes.
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 uint64_t MulDiv64(uint64_t operant, uint64_t multiplier, uint64_t divider)
Calculate (operant * multiplier / divider) with 64-bit unsigned integer values.
static int CpuLogicalCores()
CPU logical cores count.
System & operator=(const System &)=delete
C++ Benchmark project definitions.