Check out example codes for "sleep in c programming". It will help you in understanding the concepts better.

Code Example 1

//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");  
}

Learn ReactJs, React Native from akashmittal.com