After you read coder777's link it would boil down to: std::this_thread::sleep_for(std::chrono::seconds(?)); // Requires header files "chrono" and "thread"
Where the ? is the number of seconds to wait. You could change seconds to milliseconds for a more precise or shorter than a second.