Template Function eCAL::Process::SleepFor

Template Function eCAL::Process::SleepFor#

Function Documentation#

template<typename Rep, typename Period>
void eCAL::Process::SleepFor(std::chrono::duration<Rep, Period> time)#

Sleep current thread.

Templated implementation which takes as argument a std::chrono::duration and calls underlying SleepNS function. By using a std::chrono::duration argument we ensure that conversion to ms would be more precise for Windows Sleep method.


time – Time to sleep expressed in std::chrono::duration.