# Pausing execution of code in a for loop between each loop. Howto?

**URL:** https://forum.kirupa.com/t/pausing-execution-of-code-in-a-for-loop-between-each-loop-howto/249629
**Category:** flash
**Created:** [January 21, 2008, 4:53am UTC](https://forum.kirupa.com/t/pausing-execution-of-code-in-a-for-loop-between-each-loop-howto/249629 "2008-01-21T04:53:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ChillDown](https://avatars.discourse-cdn.com/v4/letter/c/bb73d2/32.png) [@ChillDown](https://forum.kirupa.com/u/ChillDown)
#### Post date: [January 21, 2008, 4:53am UTC](https://forum.kirupa.com/t/pausing-execution-of-code-in-a-for-loop-between-each-loop-howto/249629/1 "2008-01-21T04:53:10Z")

</div>

I have a for loop which runs x amount of times and between each loop i’d like to implement a small pause of execution of the code. How would i do that? Can something like that only be done using a timer? If so how would i go about doing that and what things should i import? (Trying to do this in a class)  
Though i’m wondering if there’s an easier way than timers to be able to do something like that, like C’s sleep() function for example.
