# Delay between blocks

**URL:** https://forum.makecode.com/t/delay-between-blocks/751
**Category:** EV3
**Created:** [November 8, 2019, 10:21pm UTC](https://forum.makecode.com/t/delay-between-blocks/751 "2019-11-08T22:21:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![stheyounger](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/stheyounger/32/453_2.png) [@stheyounger](https://forum.makecode.com/u/stheyounger)
#### Post date: [November 8, 2019, 10:21pm UTC](https://forum.makecode.com/t/delay-between-blocks/751/1 "2019-11-08T22:21:48Z")

</div>

When I run my program there is a long delay (1-2 seconds) in between some of the blocks. The delay is after the previous block is finished and before the next block starts. The blocks are custom that use the gyro and are under namespace motors. They are inside of a function which is inside of an if statement. I can’t figure out whether the delay is because they are custom blocks, or that they use the gyro, or if there is too much abstraction. The simulator doesn’t have the delay.

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [November 8, 2019, 10:42pm UTC](https://forum.makecode.com/t/delay-between-blocks/751/2 "2019-11-08T22:42:42Z")

</div>

Most likely, the gyro is trying to calibrate or waiting to be ready.

---

<div class="post-metadata">

### Author: ![stheyounger](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/stheyounger/32/453_2.png) [@stheyounger](https://forum.makecode.com/u/stheyounger)
#### Post date: [November 9, 2019, 6:06pm UTC](https://forum.makecode.com/t/delay-between-blocks/751/3 "2019-11-09T18:06:11Z")

</div>

Awesome thanks! I that was the problem. I was able to take out the gyro reset. That got rid of the delay.

---

<div class="post-metadata">

### Author: ![stheyounger](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/stheyounger/32/453_2.png) [@stheyounger](https://forum.makecode.com/u/stheyounger)
#### Post date: [November 9, 2019, 6:15pm UTC](https://forum.makecode.com/t/delay-between-blocks/751/4 "2019-11-09T18:15:02Z")

</div>

By the way, it seems the gyro reset was also causing a delay between a button press and movement. I was using an if button pressed and then my gyro blocks. I think the blocks caused delay there too.
