sleep in c windows code example
Example 1: how to sleep in c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main(){
printf("Sleeping for 5 seconds \n");
sleep(5);
printf("Sleep is now over \n");
}
Example 2: sleep function in c
#include <unistd.h>
unsigned sleep(unsigned seconds);