How to build a timer that counts the seconds elapsed?
I'm doing this game for a school, project and one of the extras to have a better grade is a timer. I need to count the time (in seconds) elapsed while i'm running the game until I win it. Meaning, I start the game, the timer starts counting the seconds, I win the game, the timer stops and I need to return the number of seconds elapsed.
One way to do this would be: get the system time at start and at the end, then calculate the seconds. However, I would like to have the timer on screen, chaging within each second. Is it possible without much code? How?
I'll hear any other suggestion too...