# Stop timer

**URL:** <https://forum.kirupa.com/t/stop-timer/278930>\
**Category:** Uncategorized\
**Created:** [January 7, 2009, 6:20pm UTC](https://forum.kirupa.com/t/stop-timer/278930 "2009-01-07T18:20:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![the\_frog](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@the\_frog](https://forum.kirupa.com/u/the_frog)\
**Post date:** [January 7, 2009, 6:20pm UTC](https://forum.kirupa.com/t/stop-timer/278930/1 "2009-01-07T18:20:19Z")

</div>

I´am trying to make a timer to my hangman game, and this is the code I´have.

```auto

    [FONT=&quot]timer = 0;[/FONT]
  
  [FONT=&quot]countup = function(){[/FONT]
  [FONT=&quot] timer++;[/FONT]
  [FONT=&quot]}[/FONT]
  
  [FONT=&quot]countupInterval = setInterval(countup,1000);[/FONT]
  

```

If i would like the timer to stop on a specific frame and show the time result how do I do that?  
With some kind of if-else statement, or some kind of function.stop.  
I´am totaly new to this.  
Please help!
