new2programming 0 Light Poster

i have been following this tutorial on http://jnrdev.72dpiarmy.com/ number 3. I am using SDL with visual C++ i want to add a timer to this code then after the timer has run out i want the game to go to a highscore table where you can enter your name if your score is high enough. How would i do this?