Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
You can use the libraries chrono and thread like this: #include <chrono> #include <thread> // use this to get a 1 second delay std::this_thread::sleep_for(std::chrono::seconds(1)); Note that your program needs to follow c++11 standard to use this.
21st Apr 2018, 4:23 PM
Codrut
Codrut - avatar