ioliver Posted March 5, 2004 Share Posted March 5, 2004 While 1 Wend This loop puts my CPU usage at 99 even if there is noting in the loop. Any idea? "Blessed be the name of the Lord" - Job 1:21Check out Search IMF Link to comment Share on other sites More sharing options...
Developers Jos Posted March 5, 2004 Developers Share Posted March 5, 2004 that is correct... It basically does what you ask it to do.... just add a Sleep(100) to have it pause a little every loop.. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
scriptkitty Posted March 5, 2004 Share Posted March 5, 2004 99% computer usage: While 1 Wend 00.01% computer usage: While 1 sleep(1); virtually no wait time. Wend AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
ioliver Posted March 5, 2004 Author Share Posted March 5, 2004 Thank you very much... That sleep(1) will save me lots of processor time in at least 2 of my scripts. Thanks again "Blessed be the name of the Lord" - Job 1:21Check out Search IMF Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now