# Help with getTimer()

**URL:** <https://forum.kirupa.com/t/help-with-gettimer/53428>\
**Category:** Uncategorized\
**Created:** [June 3, 2004, 4:53pm UTC](https://forum.kirupa.com/t/help-with-gettimer/53428 "2004-06-03T16:53:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbsr](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@jbsr](https://forum.kirupa.com/u/jbsr)\
**Post date:** [June 3, 2004, 4:53pm UTC](https://forum.kirupa.com/t/help-with-gettimer/53428/1 "2004-06-03T16:53:46Z")

</div>

I was wondering if it’s possible to reset the getTimer() value with a command, if it’s possible, I’d appreciate anyone posting helping me with it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 15, 2004, 9:00am UTC](https://forum.kirupa.com/t/help-with-gettimer/53428/2 "2004-07-15T09:00:47Z")

</div>

erh, don’t mind me but i just don’t wanna create another thread with nearly the exact same title.

I’ve been really trying to get this right. I want to have a; timer starting from the start of the movie in seconds as well an minutes. I didn’t look on anything, i thought of the method myself. I came up with many ways but this is the closest:

```auto
onClipEvent (enterFrame) {
mymilli = getTimer();
mysec = Math.round(mymilli/1000)-secminus;
mymin = 0;
secminus = 0;
realsec = Math.round(mymilli/1000);
if (realsec == 60) {
secminus += 60;
mymin += 1;
}
nTimer = mymin+ " minutes and "+mysec+" seconds";
}

```

It’s probably hard to understand y i have it in such a way. Cuz (I think) no matter what i do with the mymilli, (sabtract for example) it will still getTimer again.

When it gets to 60 seconds, the seconds become zero and the minute become 1 but when it gets to 61 seconds, the minute becomes zero again and the seconds become 61.

Do u need a file?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 15, 2004, 9:49am UTC](https://forum.kirupa.com/t/help-with-gettimer/53428/3 "2004-07-15T09:49:11Z")

</div>

this should be in the actionscript forum, shouldn’t it?
