Template Function eCAL::Time::sleep_for

Function Documentation

template<class _Rep, class _Period>
inline void eCAL::Time::sleep_for(const std::chrono::duration<_Rep, _Period> &_Rel_time)

blocks for the given duration

The actual amount of (real-) time is influenced by the current rate at which the time is proceeding. The precision of the delay is not guaranteed. It might depend on the actual eCAL Clock that is selected and limitations of the operating system.

Example usage: eCAL::Time::sleep_for(std::chrono::seconds(10))

Parameters

_Rel_time – the relative duration to sleep