ericnail Posted November 20, 2010 Share Posted November 20, 2010 I just found out that when you use: Sleep(1) This results in sleep defaulting to 10ms. Is there a way around this?? Is there a way to sleep for only 1ms? Like maybe something like this: $Timer = TimerInit() Do $a = TimerDiff($Timer) Until $a = 1 Anyone have any ideas/knowledge on this? Thanks, Eric Link to comment Share on other sites More sharing options...
somdcomputerguy Posted November 20, 2010 Share Posted November 20, 2010 (edited) Maybe this helps? Time to Thousandths of a second<br><br>Here's another thread that may help.. Edited November 20, 2010 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
ericnail Posted November 20, 2010 Author Share Posted November 20, 2010 Maybe this helps? Time to Thousandths of a second<br><br>Here's another thread that may help.. Awesome! That works. For what it's worth, since I don't need micro seconds, i found that this actually worked: SleepLocal(1) Func SleepLocal($time) $a = TimerInit() Do $b = TimerDiff($a) Until $b >= $time Return EndFunc But thanks a ton! I am saving that microsecond thing it could be super useful! Link to comment Share on other sites More sharing options...
Richard Robertson Posted November 20, 2010 Share Posted November 20, 2010 Why are you wanting to sleep for 1 millisecond anyway? Link to comment Share on other sites More sharing options...
JohnOne Posted November 20, 2010 Share Posted November 20, 2010 I didnt get that much sleep last night, with the neighbours fighting. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted November 21, 2010 Share Posted November 21, 2010 But thanks a ton! I am saving that microsecond thing it could be super useful!Hey glad to help. Good luck! - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. 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