We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What command should I use to make my program pause until the user presses a key?
#14
I wouldn't program an infinite loop without a program.delay().
One of my first experiences with Small Basic was that this simple programming language, which also comes from Microsoft and was intended for children, slowed down the Windows XP operating system (50% CPU load). On weak hardware, that's the end.  Angel

With WIN 7, the code example generates a CPU load of 8%!! With Program.delay(1) it is 0%.
If the operating system briefly gains control of the program, it saves CPU load and energy.  Smile

I mean, WINDOWS doesn't achieve an accuracy of < 10ms with the overkill of events and processes.
It is not a real-time operating system.
[-] The following 2 users Like Scout's post:
  • Elzaimer, litdev
Reply


Messages In This Thread
RE: What command should I use to make my program pause until the user presses a key? - by Scout - 06-26-2024, 06:20 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)