Jump to content
Sign in to follow this  
ioliver

While...wend Uses All Processor Time

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...