Sleep function in C++ - Stack Overflow
The simplest way I found for C++ 11 was this: Your includes: #include #include #include Your code (this is an example for sleep 1000 millisecond): std::chrono::duration timespan(1000); std::this_thread::sleep_for ......