sleep cpp linux code example
Example 1: sleep in c++ linux
#include
sleep(10);
Example 2: sleep system function linux c++
#include
int main(int argc, char const *argv[])
{
sleep(10); // wait for 10s
return 0;
}
#include
sleep(10);
#include
int main(int argc, char const *argv[])
{
sleep(10); // wait for 10s
return 0;
}