# Timer help

**URL:** <https://forum.kirupa.com/t/timer-help/316033>\
**Category:** Uncategorized\
**Created:** [November 10, 2010, 7:55pm UTC](https://forum.kirupa.com/t/timer-help/316033 "2010-11-10T19:55:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![snakey112](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@snakey112](https://forum.kirupa.com/u/snakey112)\
**Post date:** [November 10, 2010, 7:55pm UTC](https://forum.kirupa.com/t/timer-help/316033/1 "2010-11-10T19:55:57Z")

</div>

Hi i’ve got my code that at the moment creates a timer that appears on the stage when called apon starting at 0:00 and going upwards. But what I want to happen is that I want it to start on 1:30 and countdown to 0:00 at which point I want it to go to frame label ‘winner’. Can someone take a look at my code and sort it out for me please?

```auto
public function showTime(event:Event) {
   gameTime = getTimer()-gameStartTime;
   gameTimeField.text = clockTime(gameTime);
  }
  
  public function clockTime(ms:int) 
  { 
    var seconds:int = Math.floor(ms/1000); 
    var minutes:int = Math.floor(seconds/60);
    var timeString:String = seconds/60+":"+ (seconds%60); 
    return timeString;}
  
 }

```
