15 #ifndef A_UTIL_UTIL_SYSTEM_SYSTEM_HEADER_INCLUDED
16 #define A_UTIL_UTIL_SYSTEM_SYSTEM_HEADER_INCLUDED
109 unsigned int _handle;
File/Directory path class.
RAII class for high resolution scheduling support from the OS.
bool isSupported() const
Check whether high resolution scheduling is supported by the OS.
HighResSchedulingSupport()
CTOR - requests support from OS.
~HighResSchedulingSupport()
DTOR - relinquishes support from the OS.
std::int64_t timestamp_t
Type of a timestamp value. If not otherwise stated, always in microseconds.
std::string getHostname()
Get the current hostname.
void resetLastSystemError()
Reset last system error to its initial value.
void sleepMilliseconds(std::uint32_t ms)
Yield calling thread to the operating system, scheduled to awake after a period of milliseconds.
timestamp_t getCurrentMicroseconds()
Get the current microseconds passed since the first invocation (or -1 if not available)
std::string formatSystemError(int system_error_code)
Get the description message associated with the given system error code.
std::string getCurrentUserName()
Get the current user name.
timestamp_t getCurrentMilliseconds()
Get the current milliseconds passed since system start.
void sleepMicroseconds(std::uint64_t us)
Yields calling thread to the operating system, scheduled to awake after a period of microseconds.
a_util::filesystem::Path getExecutablePath()
Get full path to the executable that started the calling system process.
int getLastSystemError()
Get the last system error (platform specific, errno or GetLastError)
Serves as the root component, with common functionality documented in core functionality.
Public API for Path type and functions.
Public types and functions defining a_util core functionality.