Answers for "make a sleep in cpp"

C++
2

c++ sleep function

#include <chrono>
#include <thread>

std::this_thread::sleep_for(std::chrono::milliseconds(x));
Posted by: Guest on April-30-2021
2

how to use sleep function in c++ windows

// to use sleep function on windows with c++
#include <Windows.h>
Sleep(3000) // based on milliseconds
Posted by: Guest on September-10-2021
0

sleep c++

#include <unistd.h>
unsigned int sleep(unsigned int seconds);
Posted by: Guest on April-28-2021

Browse Popular Code Answers by Language