sleep() function does code example
Example: sleep system function linux c++
#include <time.h>
int main(int argc, char const *argv[])
{
sleep(10); // wait for 10s
return 0;
}
#include <time.h>
int main(int argc, char const *argv[])
{
sleep(10); // wait for 10s
return 0;
}