1234567
using namespace std::chrono; void delay(unsigned long ms) { const steady_clock::time_point now = steady_clock::now(); const steady_clock::time_point finish = now + milliseconds(ms); while(steady_clock::now() < finish); }