Pause for fraction of a second

The beauty of Pause is the drastic reduction in CPU usage while waiting but I have a need for a shorter period than one second, to update a status display, for example(?)

We appear to not have an “ON TIMER n GOSUB” or any other type of interrupt, correct?

Is this used for PAUSE? It show ms resolution.

For pause with millisecond resolution please use delay(ms). SmallBASIC doesn’t offer a on timer n gosub.

Perfect….:man_facepalming: Thank you.

Prior to raising the issue, I looked at all Time related functions but of course, didn’t think about delay :rofl: :joy:

For programmers who haven’t noticed, sitting in a loop, waiting, takes the CPU-usage close to 100% (PC fan going full blast :grin: ). With delay(100), the CPU sits at 0% with the occasional blip to 7%.

Wonderful :+1: :smiling_face_with_sunglasses: :+1: