# Timer Block for Blockly IDE

**URL:** https://xrp.discourse.group/t/timer-block-for-blockly-ide/878
**Category:** Blockly programming
**Created:** [October 27, 2025, 12:30pm UTC](https://xrp.discourse.group/t/timer-block-for-blockly-ide/878 "2025-10-27T12:30:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Enmanuelgg05](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@Enmanuelgg05](https://xrp.discourse.group/u/Enmanuelgg05)
#### Post date: [October 27, 2025, 12:30pm UTC](https://xrp.discourse.group/t/timer-block-for-blockly-ide/878/1 "2025-10-27T12:30:10Z")

</div>

Hi all, first post here. I wanted to suggest that the developers add a Timer Block to the blockly programming environment. I want to teach students how to use the timer without having to jump into python. All the timer block would have to do is report the time since the program started running.

---

<div class="post-metadata">

### Author: ![SparkFro](https://yyz1.discourse-cdn.com/flex011/user_avatar/xrp.discourse.group/sparkfro/32/12_2.png) [@SparkFro](https://xrp.discourse.group/u/SparkFro)
#### Post date: [October 31, 2025, 3:54pm UTC](https://xrp.discourse.group/t/timer-block-for-blockly-ide/878/2 "2025-10-31T15:54:45Z")

</div>

Thanks for the suggestion!

@Fgrossman Can some more of the `time` module functions be added? There’s currently only 1 block for `time.sleep()`, but would be great to have at least `time.time()` and `time.ticks_ms()`. Would also be nice to have blocks for [`XRPLib.timeout.py`](https://github.com/Open-STEM/XRP_MicroPython/blob/main/XRPLib/timeout.py).

---

<div class="post-metadata">

### Author: ![Tinker](https://avatars.discourse-cdn.com/v4/letter/t/e47774/32.png) [@Tinker](https://xrp.discourse.group/u/Tinker)
#### Post date: [June 20, 2026, 4:12pm UTC](https://xrp.discourse.group/t/timer-block-for-blockly-ide/878/3 "2026-06-20T16:12:38Z")

</div>

I know this is an old post, but having a timer block would be really handy.

One solution I had a student try was to put a sleep (e.g., 0.1 seconds) in the main loop and count the scans. (I probably got the wrong term; I mostly work with PLCs, so I’m a amateur when it comes to this type of programming.) The student said it worked for him.
