note 59008 deleted from function.sleep by danbrown

From: Date: Sat, 14 Mar 2009 14:38:03 +0000
Subject: note 59008 deleted from function.sleep by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-151876@lists.php.net to get a copy of this message
Note Submitter: justin at jennnixon dot com ---- Sleep sometimes does not run for the EXACT amount of time specified. <?php $st = array_sum (explode (' ', microtime ())); sleep (1); echo round ((array_sum (explode (' ',microtime ())) - $st), 7); ?> On three trials, this returned 0.9998388 0.9999161 1.001672

« previous php.notes (#151876) next »