#include <thread> #include <chrono> ... this_thread::sleep_for(chrono::milliseconds(400)); this_thread::sleep_for(chrono::seconds(2)); this_thread::sleep_for(chrono::microseconds(2000));