CoreComponents 4.0.0
A Modern C++ Toolkit
Loading...
Searching...
No Matches

System information More...

#include <cc/System>

Static Public Member Functions

static int concurrency ()
 Query the number of threads the system can run concurrently.
 
static int pageSize ()
 Query the memory page size (in bytes)
 
static double now ()
 Get the current system time (in seconds since start of Epoch, starting at 1st Jan 1970 00:00:00)
 
static int64_t uptime ()
 Monotonic system time (without leap second jumps) in microseconds.
 
static uint32_t noise ()
 Get some random bits from the system if available, otherwise return just a pseuo-random number.
 
static String hostName ()
 Get the system's host name.
 
static void setHostName (const String &newName)
 Set the system's host name
 

Detailed Description

System information

Member Function Documentation

◆ concurrency()

int concurrency ( )
static

Query the number of threads the system can run concurrently.

◆ pageSize()

int pageSize ( )
static

Query the memory page size (in bytes)

◆ now()

double now ( )
static

Get the current system time (in seconds since start of Epoch, starting at 1st Jan 1970 00:00:00)

See also
Date, Timezone

◆ uptime()

int64_t uptime ( )
static

Monotonic system time (without leap second jumps) in microseconds.

◆ noise()

uint32_t noise ( )
static

Get some random bits from the system if available, otherwise return just a pseuo-random number.

◆ hostName()

String hostName ( )
static

Get the system's host name.

◆ setHostName()

void setHostName ( const String newName)
static

Set the system's host name