# Timer issue

**URL:** <https://forum.kirupa.com/t/timer-issue/253830>\
**Category:** flash\
**Created:** [March 5, 2008, 3:32pm UTC](https://forum.kirupa.com/t/timer-issue/253830 "2008-03-05T15:32:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay0316](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@jay0316](https://forum.kirupa.com/u/jay0316)\
**Post date:** [March 5, 2008, 3:32pm UTC](https://forum.kirupa.com/t/timer-issue/253830/1 "2008-03-05T15:32:12Z")

</div>

I’ve seen a lot of code out there for timers, but I’m having trouble finding one that counts up and displays minutes seconds and hundredths of a second. I’m wanting to use it for a game, so I’m not looking for one of those date hour minute second countdown timers. I’m a little overwhelmed by all the timers. Could someone point me to one that can do this?

I attached code from an example that counts up in seconds.

Thanks!

Jason

```auto
//this is the number displayed
timed = 1;
//Makes the Timer equal 100. Change it to whatever number you want.
clearInterval(id);
//If this wasnt here, after the first second the function would run everyframe, this runs on milliseconds so 1000 miliseconds = 1 second
id = setInterval(function () {
    _root.timed++;
}, 1000);
this.onEnterFrame = function() {
    if (_root.timed<=0) {
        _root.timed = "Time";
        //trace(countdown);
    }
};

```
