I'm looking possible ways to optimize sleep time in a script which has multiple sleep times for save, refresh etc.
The sleep duration varies from 5 secs to 17 secs time to time (depending upon the record, computer performance etc).
Currently I set max sleep duration. ie sleep(17000).
I'm looking possible ways to dynamically change sleep duration rather than fixed maximum duration.
Note: winwait is not helpful in my script.
Thanks in advance for your responses