note 46152 rejected from function.sleep by betz
| From: | betz@php.net | Date: | Fri, 01 Oct 2004 07:29:21 +0000 |
| Subject: | note 46152 rejected from function.sleep by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-77657@lists.php.net to get a copy of this message | ||
Note Submitter: makefool at 163 dot com
----
I'm in trouble of sleep(). The least sleep time is as long as ONE second. But what I need is
10ms or 1ms. The sleep API of Windows is 1 millisecond quantitatively, and what in Unix is 1
microsecond. (Though it isn't so precision)
Why do it 1 second in PHP?
When you write a DB control with multithread php communication, the ONE second is too long for wait.