+ 3
You can use the libraries chrono and thread like this:
#include <chrono>
#include <thread>
// use this to get a 1 second delay
std::this_thread::sleep_for(std::chrono::seconds(1));
Note that your program needs to follow c++11 standard to use this.