Stopwatch for game

No no no, I want something like @Darren_Alderman’s game

If you play the game, when it starts the stopwatch also starts and stops when the game is over. That is what I want.

Here is my game. I want to implement the same feature in mine.