Function eCAL::Process::SleepMS

Function eCAL::Process::SleepMS#

Function Documentation#

ECAL_API void eCAL::Process::SleepMS(long time_ms_)#

Sleep current thread.

Because of the fact that std::this_thread::sleep_for is vulnerable to system clock changes on Windows, Sleep function from synchapi.h had to be used for Windows. This insures time robustness on all platforms from a thread sleep perspective.

Parameters:

time_ms_ – Time to sleep in ms.