#this is what I can do best so far... #sleep 3 for (0 .. 10);
Given the limited function of the sample code, that is the best solution. Though I'd go for:
1 while sleep 1;
Waking up once a second will improve your response time and cause negligible extra cpu usage.
But I suspect that in your real code you are wanting to do more in the while than just sleep?
In reply to Re: ctrl + c on Win32 (signal handling)
by BrowserUk
in thread ctrl + c on Win32 (signal handling)
by remiah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |