26 #ifndef INCLUDED_Microsleep_h_GUID_18728CEA_A634_4268_845E_86007CA19511
27 #define INCLUDED_Microsleep_h_GUID_18728CEA_A634_4268_845E_86007CA19511
31 #include <osvr/Util/Export.h>
34 #include <boost/thread/thread.hpp>
56 inline OSVR_ReturnCode
microsleep(OSVR_IN uint64_t microseconds) {
57 boost::this_thread::sleep(
58 boost::posix_time::microseconds(microseconds));
68 #endif // INCLUDED_Microsleep_h_GUID_18728CEA_A634_4268_845E_86007CA19511
Header declaring a type and values for simple C return codes.
The main namespace for all C++ elements of the framework, internal and external.
#define OSVR_RETURN_SUCCESS
The "success" value for an OSVR_ReturnCode.
OSVR_ReturnCode microsleep(uint64_t microseconds)
Request a thread sleep for at least the given number of microseconds.