# Timer with varying tick

**URL:** <https://forum.kirupa.com/t/timer-with-varying-tick/280436>\
**Category:** flash\
**Created:** [January 27, 2009, 5:39pm UTC](https://forum.kirupa.com/t/timer-with-varying-tick/280436 "2009-01-27T17:39:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![markpenfold](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@markpenfold](https://forum.kirupa.com/u/markpenfold)\
**Post date:** [January 27, 2009, 5:39pm UTC](https://forum.kirupa.com/t/timer-with-varying-tick/280436/1 "2009-01-27T17:39:06Z")

</div>

Hello everyone,

Is it possible to have a timer which calls various other events which are also timed, then  
calls again once those events are finished and so on?

So it would look a bit like this:

var t = new Timer(t = how long it takes to do the stuff in the\_function, x);

function the\_function(){  
//draws varying number of items to screen  
}

I can’t seem to work out how you would do this, if it’s possible.

Any help or useful pointers would be greatly appreciated.

All the best

M
