Thea
|
Low-level system information and profiling functions. More...
#include <System.hpp>
Static Public Member Functions | |
static void | beginCycleCount (uint64 &cycle_count) |
Begin a timing operation. More... | |
static intx | concurrency () |
Get the hardware concurrency (approximate number of thread contexts). More... | |
static void | endCycleCount (uint64 &cycle_count) |
End a timing operation. More... | |
static Endianness | endianness () |
Get the machine endianness. More... | |
static void | sleep (intx ms) |
Pause the current thread for a given number of milliseconds. More... | |
static double | time () |
The actual time (measured in seconds since Jan 1 1970 midnight). More... | |
Low-level system information and profiling functions.
Definition at line 27 of file System.hpp.
|
static |
Begin a timing operation.
To count the number of cycles a given operation takes:
uint64 count; System::beginCycleCount(count); ... System::endCycleCount(count); // count now contains the cycle count for the intervening operation.
Definition at line 188 of file System.cpp.
|
static |
Get the hardware concurrency (approximate number of thread contexts).
Definition at line 32 of file System.cpp.
|
static |
|
static |
Get the machine endianness.
Definition at line 34 of file System.hpp.
|
static |
Pause the current thread for a given number of milliseconds.
Definition at line 42 of file System.cpp.
|
static |
The actual time (measured in seconds since Jan 1 1970 midnight).
Adjusted for local timezone and daylight savings time. This is as accurate and fast as getCycleCount().
Definition at line 111 of file System.cpp.