MPIO v1.4.0
OS Class Reference

Common operating system functions. More...

#include <os.hpp>

Static Public Member Functions

static double getCurrentClock ()
 Returns high resolution time stamp in seconds. (MT-Safe)
 
static int getLogicalCpuCount ()
 Returns system logical CPU count. (MT-Safe)
 
static int getPhysicalCpuCount ()
 Returns system physical CPU count. (MT-Safe)
 
static int getPerformanceCpuCount ()
 Returns system performance CPU count. (MT-Safe)
 
static int64_t getTotalRamSize ()
 Returns system total physical RAM size. (MT-Safe)
 
static int64_t getFreeRamSize ()
 Returns system free physical RAM size. (MT-Safe)
 
static string getCpuName ()
 Returns system CPU name string. (MT-Safe)
 

Detailed Description

Common operating system functions.

See the os.h

Member Function Documentation

◆ getCurrentClock()

static double getCurrentClock ( )
inlinestatic

Returns high resolution time stamp in seconds. (MT-Safe)

See the getCurrentClock().

◆ getLogicalCpuCount()

static int getLogicalCpuCount ( )
inlinestatic

Returns system logical CPU count. (MT-Safe)

See the getLogicalCpuCount().

Exceptions
Errorif failed to get logical CPU count.

◆ getPhysicalCpuCount()

static int getPhysicalCpuCount ( )
inlinestatic

Returns system physical CPU count. (MT-Safe)

See the getPhysicalCpuCount().

Exceptions
Errorif failed to get physical CPU count.

◆ getPerformanceCpuCount()

static int getPerformanceCpuCount ( )
inlinestatic

Returns system performance CPU count. (MT-Safe)

See the getPerformanceCpuCount().

Exceptions
Errorif failed to get performance CPU count.

◆ getTotalRamSize()

static int64_t getTotalRamSize ( )
inlinestatic

Returns system total physical RAM size. (MT-Safe)

See the getTotalRamSize().

Exceptions
Errorif failed to get total RAM size.

◆ getFreeRamSize()

static int64_t getFreeRamSize ( )
inlinestatic

Returns system free physical RAM size. (MT-Safe)

See the getFreeRamSize().

Exceptions
Errorif failed to get free RAM size.

◆ getCpuName()

static string getCpuName ( )
inlinestatic

Returns system CPU name string. (MT-Safe)

See the getCpuName().

Exceptions
Errorif failed to get CPU name.