In this video, we talk about basic way to create timer in c++,
problems with it how to fix it.
You need to know about to clock(), Sleep() and system("CLS")
before attempting this program.
I have created a test loop to calculate time lag in one loop. And in the main loop, I substracted the sleep time with the time lag.