sleep.sleep(10); code example Example 1: sleep in c++ linux #include <unistd.h> sleep(10); Example 2: sleep in c sleep(5); //sleep for 5 secs