# How to change delay on timers using setInterval()?

**URL:** <https://forum.kirupa.com/t/how-to-change-delay-on-timers-using-setinterval/214752>\
**Category:** Uncategorized\
**Created:** [January 31, 2007, 6:54pm UTC](https://forum.kirupa.com/t/how-to-change-delay-on-timers-using-setinterval/214752 "2007-01-31T18:54:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![enb141](https://avatars.discourse-cdn.com/v4/letter/e/82dd89/32.png) [@enb141](https://forum.kirupa.com/u/enb141)\
**Post date:** [January 31, 2007, 6:54pm UTC](https://forum.kirupa.com/t/how-to-change-delay-on-timers-using-setinterval/214752/1 "2007-01-31T18:54:03Z")

</div>

Hi this is my code the problem with this code is that I can’t change the delay once its loaded.

Is there a way to change the delay after firing **runMany()**?

```auto

var intID:Number = setInterval(runMany, 1000, 1); // 1 second
function runMany():Void {
	trace("runMany() called @ " + getTimer() + " ms");
	clearInterval(intID);
}

```
