I am working on a game project. I need to know that how can I display the seconds when game is started to the end of game ? also need to display in format of ” 00:01 ” . additional if time goes to beyond the 60 min than it should also display the hours ” 1:00:01 “
any guidance ?
Thanks…
After combining the answers of Nathan and Mark the complete timer method could look something like this:
when you start the game you set the startDate and start the timer like this:
when stopping the game you use this: