# Timer that Stops and starts:

**URL:** <https://forum.kirupa.com/t/timer-that-stops-and-starts/126670>\
**Category:** Uncategorized\
**Created:** [October 26, 2004, 9:57am UTC](https://forum.kirupa.com/t/timer-that-stops-and-starts/126670 "2004-10-26T09:57:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chockybickyman](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@chockybickyman](https://forum.kirupa.com/u/chockybickyman)\
**Post date:** [October 26, 2004, 9:57am UTC](https://forum.kirupa.com/t/timer-that-stops-and-starts/126670/1 "2004-10-26T09:57:49Z")

</div>

I want to start a timer when the game begins that counts up, but doesnt actually display the time during gameplay, but stops when a player has won and the screen goes to the player wins screen. From there i want that time to display in a text variable along with all the other statistics i have generated.

The timer will also need a reset function when starting up the game again.

How do i go about doing this???  
Any help woudl be great!!!

Cheers  
Peter.D
