Check out example codes for "c pause for 1 second". It will help you in understanding the concepts better.

Code Example 1

#include <stdio.h>
#include <unistd.h> //you need this for linux!
#include <dos.h> //you need this for Windows!

int main(){
    printf("Hello,");
    sleep(5); // format is sleep(x); where x is # of seconds.
    printf("World");
    return 0;
}

Learn ReactJs, React Native from akashmittal.com