DO NOT call CPU speed in any tight loops. Its is VERY cpu heavy and will kill
your other threads. Use at load / idle only. And dont rely on it for computing timers
or anything else of that nature
1.1.0 Added stream output and made writing all stream based (yay for streams!!)
Definition at line 42 of file CSystemInformation.hpp.
static DWORD Exponent::Host::CSystemInformation::determineTimeStamp | ( | ) | [static] |
Determine the time stamp for measuring CPU speed
DWORD | The time stamp |
static void Exponent::Host::CSystemInformation::dumpSystemInfoToFile | ( | CTextStream & | stream | ) | [static] |
Output the system logs to the the supplied stream
stream | The text stream |
static void Exponent::Host::CSystemInformation::dumpSystemInfoToFile | ( | CSystemString & | path | ) | [static] |
Dump all information to a text file
path | The path to write the data to |
static CString Exponent::Host::CSystemInformation::getComputerName | ( | ) | [static] |
Get the computer name
CString | On return filled with the computer name |
static CString Exponent::Host::CSystemInformation::getCpuNameString | ( | ) | [static] |
Get a string representing the CPU
CString | On return stores a string representing the CPU speed |
static long Exponent::Host::CSystemInformation::getCpuSpeed | ( | ) | [static] |
Get the CPU speed
long | The CPU speed |
static long Exponent::Host::CSystemInformation::getNumberOfProcessors | ( | ) | [static] |
Get the number of processors
long | The number of processors |
static bool Exponent::Host::CSystemInformation::getOperatingSystemVersion | ( | CString & | string | ) | [static] |
Get a string representing the os version
string | On return stores the os version |
bool | True if filled string properly, false otherwise |
static void Exponent::Host::CSystemInformation::getOsVersionInfo | ( | long & | major, | |
long & | minor, | |||
long & | build | |||
) | [static] |
Get the operating system version
major | On return holds the os major verison | |
minor | On return holds the os minor version | |
build | On return holds the os build version |
static void Exponent::Host::CSystemInformation::getSystemInfo | ( | SSystemInformation & | sys | ) | [static] |
Get the info about the system
sys | On return is filled with system information |
static CString Exponent::Host::CSystemInformation::getUserName | ( | ) | [static] |
Get the logged on user name
const | CString The name of the current user |