cpp chrono sleep for 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));