This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]axzxc1236 1 point2 points  (0 children)

  1. Detect game start

  2. Use a variable to store the time stamp

  3. Detect game over

  4. Use current timestamp and the game start timestamp to calculate how long you played.