Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Updating Clock at a different rate to program loop-example not working as expected?
#2
Short answer: SLEEP is interrupted by timer events.

This is mentioned in passing in the QB45 manual ("the program will stay suspended until ... an enabled event occurs") but appears to be missing from the QB64PE wiki.

You can use _DELAY instead of SLEEP to achieve what you want (though note _DELAY cannot be interrupted by a keypress like SLEEP can).
Reply


Messages In This Thread
RE: Updating Clock at a different rate to program loop-example not working as expected? - by luke - 08-15-2024, 12:06 PM



Users browsing this thread: 2 Guest(s)