#include <winstl/winstl.h>
Go to the source code of this file.
Namespaces | |
namespace | winstl |
Functions | |
STLSOFT_INLINE int | winstl__micro_sleep (ws_uint_t microseconds) |
[C, C++] Puts the calling thread to sleep for the given number of microseconds. | |
int | micro_sleep (ws_uint_t microseconds) |
[C++ only] Puts the calling thread to sleep for the given number of microseconds. |
STLSOFT_INLINE int winstl__micro_sleep | ( | ws_uint_t | microseconds | ) |
[C, C++] Puts the calling thread to sleep for the given number of microseconds.
winstl__micro_sleep(100000); // Sleep for 0.1 seconds winstl__micro_sleep(100); // Sleep for 0.1 milliseconds
microseconds | The number of microseconds to wait |
GetLastError()
will contain an error code representing the reason for failure.References STLSOFT_NS_GLOBAL.
Referenced by winstl::micro_sleep().