c++ sleep for 1 second code example
Example: c++ sleep function
#include <chrono>
#include <thread>
std::this_thread::sleep_for(std::chrono::milliseconds(x));
#include <chrono>
#include <thread>
std::this_thread::sleep_for(std::chrono::milliseconds(x));