[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add sleep builtin

From: L A Walsh
Subject: Re: Add sleep builtin
Date: Tue, 21 Aug 2018 18:11:14 -0700
User-agent: Thunderbird

Clint Hepner wrote:
On Aug 19, 2018, at 10:25 AM, konsolebox <address@hidden> wrote:

Hi Chet,

The sleep command is often used in loops and using the external sleep
is expensive.

Expensive is relative, as the time spent actually sleeping probably dwarfs the 
startup time. If not, you probably want to find an alternative to polling 

If he implements sleep with the floating point option then the above might
not be true:

sleep .001 (ms sleep)...not practical if loaded each time)
I often use sleep .1/.3/.5 ... if the builtin doesn't support sleep times
< 1 second, then it's probably not worth it.

Also, needs to actually sleep for the listed time.

I  remember some implementations only wait till the clock reaches the
new time in seconds -- meaning that the actual sleep time could be
.001 seconds.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]