Timers

SDL can tell you "what time it is," pause your program for a specified amount of time, or even call a function at regular intervals.

The first two processes are simple:

The third is much more complicated...