Common operating system functions. More...
#include <stdint.h>Functions | |
| double | getCurrentClock () |
| Returns high resolution time stamp in seconds. (MT-Safe) | |
| int | getLogicalCpuCount () |
| Returns system logical CPU count. (MT-Safe) | |
| int | getPhysicalCpuCount () |
| Returns system physical CPU count. (MT-Safe) | |
| int | getPerformanceCpuCount () |
| Returns system performance CPU count. (MT-Safe) | |
| int64_t | getTotalRamSize () |
| Returns system total physical RAM size. (MT-Safe) | |
| int64_t | getFreeRamSize () |
| Returns system free physical RAM size. (MT-Safe) | |
| char * | getCpuName () |
| Returns system CPU name string. (MT-Safe) | |
Common operating system functions.
| double getCurrentClock | ( | ) |
Returns high resolution time stamp in seconds. (MT-Safe)
That can be used for time-interval measurements.
| int getLogicalCpuCount | ( | ) |
Returns system logical CPU count. (MT-Safe)
Usefull for a background thread pool thread count.
| int getPhysicalCpuCount | ( | ) |
Returns system physical CPU count. (MT-Safe)
Usefull for a foreground thread pool thread count.
| int getPerformanceCpuCount | ( | ) |
Returns system performance CPU count. (MT-Safe)
Usefull for a foreground thread pool thread count.
| int64_t getTotalRamSize | ( | ) |
Returns system total physical RAM size. (MT-Safe)
Usefull for an OS information logging.
| int64_t getFreeRamSize | ( | ) |
Returns system free physical RAM size. (MT-Safe)
Usefull for an OS information logging.
| char * getCpuName | ( | ) |
Returns system CPU name string. (MT-Safe)
Usefull for an OS information logging.