|
Dev Essential
1.6.3
|
Serves as component for portable OS (Windows, Linux, ...) functionality. More...
Classes | |
| class | AddressInfo |
| class | HighResSchedulingSupport |
| class | Timer |
Functions | |
| std::string | getCurrentUserName () |
| std::string | getHostname () |
| a_util::filesystem::Path | getExecutablePath () |
| int | getLastSystemError () |
| void | resetLastSystemError () |
| Reset last system error to its initial value. | |
| std::string | formatSystemError (int system_error_code) |
| void | sleepMilliseconds (std::uint32_t ms) |
| void | sleepMicroseconds (std::uint64_t us) |
| timestamp_t | getCurrentMilliseconds () |
| timestamp_t | getCurrentMicroseconds () |
| std::string | generateUUIDv4 () |
Serves as component for portable OS (Windows, Linux, ...) functionality.
| std::string a_util::system::formatSystemError | ( | int | system_error_code | ) |
Get the description message associated with the given system error code
| [in] | system_error_code | The error code to get the description for. |
| std::string a_util::system::generateUUIDv4 | ( | ) |
Generate a UUIDv4 string
| timestamp_t a_util::system::getCurrentMicroseconds | ( | ) |
Get the current microseconds passed since the first invocation (or -1 if not available)
| timestamp_t a_util::system::getCurrentMilliseconds | ( | ) |
Get the current milliseconds passed since system start
| std::string a_util::system::getCurrentUserName | ( | ) |
Get the current user name
| a_util::filesystem::Path a_util::system::getExecutablePath | ( | ) |
Get full path to the executable that started the calling system process
| std::string a_util::system::getHostname | ( | ) |
Get the current hostname
| int a_util::system::getLastSystemError | ( | ) |
Get the last system error (platform specific, errno or GetLastError)
| void a_util::system::sleepMicroseconds | ( | std::uint64_t | us | ) |
Yields calling thread to the operating system, scheduled to awake after a period of microseconds.
| [in] | us | Duration to yield the thread in microseconds |
| void a_util::system::sleepMilliseconds | ( | std::uint32_t | ms | ) |
Yield calling thread to the operating system, scheduled to awake after a period of milliseconds.
| [in] | ms | Duration to yield the thread in milliseconds |