Ginan
Loading...
Searching...
No Matches
PlatformCompat Namespace Reference

Functions

int GetLastError ()
 Get the last system error code.
 
void SleepMs (unsigned int milliseconds)
 Sleep for specified milliseconds.
 

Function Documentation

◆ GetLastError()

int PlatformCompat::GetLastError ( )
inline

Get the last system error code.

Returns
Error code (errno on POSIX, GetLastError() on Windows)

◆ SleepMs()

void PlatformCompat::SleepMs ( unsigned int milliseconds)
inline

Sleep for specified milliseconds.

Parameters
millisecondsDuration to sleep