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

Code Example 1

#include <Windows.h>

Sleep(number of milliseconds);

Learn ReactJs, React Native from akashmittal.com