Answers for "sleep in c++ linux"

C++
1

sleep in c++ linux

#include <unistd.h>
 sleep(10);
Posted by: Guest on October-07-2020
0

sleep system function linux c++

#include <time.h>

int main(int argc, char const *argv[])
{
    sleep(10);	// wait for 10s

    return 0;
}
Posted by: Guest on June-20-2020
0

sleep in c++

#if __WIN32
#include <Windows.h>
#else
#include <unistd.h>
#endif
Posted by: Guest on August-20-2021

Browse Popular Code Answers by Language