This library exposes a setTimeout function to the global namespace, similar in functionality to the setTimeout function in Javascript.
The timeout delay is specified by passing a std::chrono::duration as the second argument:
using namespace std::chrono_literals;
setTimeout([] {
// code ...
}, 5s); // 5 second delay
setTimeout is also able to pass parameters to the function to be executed:
using namespace std::chrono_literals;
setTimeout([](int n) {
// do something with n
}, 5s, 69);