# Timer - Not timer class, but time taken to do certain events

**URL:** <https://forum.kirupa.com/t/timer-not-timer-class-but-time-taken-to-do-certain-events/231233>\
**Category:** flash\
**Created:** [July 3, 2007, 3:18am UTC](https://forum.kirupa.com/t/timer-not-timer-class-but-time-taken-to-do-certain-events/231233 "2007-07-03T03:18:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fishbulb](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/fishbulb/32/3796_2.png) [@fishbulb](https://forum.kirupa.com/u/fishbulb)\
**Post date:** [July 3, 2007, 3:18am UTC](https://forum.kirupa.com/t/timer-not-timer-class-but-time-taken-to-do-certain-events/231233/1 "2007-07-03T03:18:57Z")

</div>

[LEFT]So i’m making a little game and want to know how to start a timer and display the number of milliseconds between the start and finish of two different events. I do not want to run a function after 5000 milliseconds or whatever, just record the length of time taken to say click two buttons.

Basically a stopwatch.

I saw the getTimer(); function but i’m not sure of how to use it or if that is what i need.

Once again, thanks for your time.  
[/LEFT]
