Hello Monks,
I would like to add a condition to a while loop that exits the loop if the code has been executing for certain amount of time. For example I would like the while to exit if ($count>100 or time>60 minutes). Is there a standard way for doing this? I don't need anything fancy. I just want to be able to set the program to run for a couple of hours (if need be) and then stop.
Thanks.
In reply to Running code a certain amount of time by Ninth Prince
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |