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