27 template <
typename Callable>
32 auto tmStart = std::chrono::high_resolution_clock::now();
40 if (std::chrono::high_resolution_clock::now() - tmStart > tmTimeOut)
45 std::this_thread::sleep_for(tmInterval);
std::chrono::milliseconds milliseconds
Compatibility to C++11 std::chrono::milliseconds
bool wait_until(Callable &&oCallable, std::chrono::milliseconds tmTimeOut, std::chrono::milliseconds tmInterval=std::chrono::milliseconds{100})
Repeateatly calls oCallable until either it returns true or the timeout expires.
Namespace for entire ADTF SDK.