instead of sleeping, and calling a sub to stop the loop, write the loop like this (pseudocode):
while (!alarmed) { yourWorkHere(); alarm("you have 60 sec. to press a key to stop this loop"); if (keyPressed) { alarmed=1; } }
In reply to Re: Help to infinite loop
by dwhite20899
in thread Help to infinite loop
by Mik0r
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |