Timer Block for Blockly IDE

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.

1 Like

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.

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.

1 Like