This tutorial covers the SDL_GetTicks function and how it can be used in a game/program.
The timer in this demo is used to ensure vehicles travel at same rate from system to system.
You can down load a copy of this project at
http://www.grhmedia.com/view_SDL205.html
You can down load or watch other tutorials at my site
http://www.grhmedia.com/tutorials_SDL2.html
If you would like me to keep producing tutorials please support me on patreon
https://www.patreon.com/grhayes