c sleep code example
Example 1: c# Sleep
using System.Threading;
static void Main()
{
Thread.Sleep(5000)
}
Example 2: sleep in c programming
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main(){
printf("Sleeping for 5 seconds \n");
sleep(5);
printf("Wake up \n");
}
Example 3: 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 4: sleep function in c
#include <unistd.h>
unsigned sleep(unsigned seconds);
Example 5: sleep in c
sleep(5);