Function eCAL::Process::SleepNS¶
Defined in File ecal_process.h
Function Documentation¶
-
ECAL_API void
eCAL::Process
::
SleepNS
(const long long time_ns_)¶ 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. Used with ns unit to obtain bigger precision.
- Parameters
time_ns_ – Time to sleep in ns.