Answers for "c sleep"

C#
14

c# Sleep

using System.Threading;

static void Main()
{
  //do stuff
  Thread.Sleep(5000) //will sleep for 5 sec
}
Posted by: Guest on March-02-2020
5

sleep in c programming

//sleep function provided by <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
 
int main(){
  
	printf("Sleeping for 5 seconds \n");
	sleep(5);
	printf("Wake up \n");  
}
Posted by: Guest on June-03-2020
0

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");  
}
Posted by: Guest on March-03-2020
0

sleep function in c

#include <unistd.h>

unsigned sleep(unsigned seconds);
Posted by: Guest on January-20-2021
1

sleep in c

sleep(5); //sleep for 5 secs
Posted by: Guest on August-14-2020

C# Answers by Framework

Browse Popular Code Answers by Language