// to use sleep function on windows with c++ #include <Windows.h> Sleep(3000) // based on milliseconds