note 76960 deleted from function.gettimeofday by bobby

From: Date: Wed, 08 Aug 2007 04:03:58 +0000
Subject: note 76960 deleted from function.gettimeofday by bobby
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-129273@lists.php.net to get a copy of this message
Note Submitter: the dancer ---- Screw it, I left out a semicolon. <?php function wait($usecs){ $temp=gettimeofday(); $start=(int)$temp["usec"]; while(1){ $temp=gettimeofday(); $stop=(int)$temp["usec"]; if ($stop<$start) $stop+=1000000; if ($stop-$start >= $usecs) break; } } ?>

« previous php.notes (#129273) next »