Jump to content
Sign in to follow this  

Sleep Function

Recommended Posts

I just found out that when you use:


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()
    $a = TimerDiff($Timer)
Until $a = 1

Anyone have any ideas/knowledge on this?



Share this post

Link to post
Share on other sites

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:


Func SleepLocal($time)
    $a = TimerInit()
        $b = TimerDiff($a)
    Until $b >= $time

But thanks a ton! I am saving that microsecond thing it could be super useful!

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...