CoreComponents 3.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 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

◆ hostName()

String hostName ( )
static

Get the system's host name.

◆ setHostName()

void setHostName ( const String & newName)
static

Set the system's host name