note 71592 deleted from function.time by nlopess
| From: | nlopess@php.net | Date: | Thu, 07 Dec 2006 18:13:30 +0000 |
| Subject: | note 71592 deleted from function.time by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-120393@lists.php.net to get a copy of this message | ||
Note Submitter: luizufpr at yahoo dot de
----
// - FUNCAO DELAY php ---
// cada i incrementado corresponde a aproximadamente 2 micro.s.
// every i incremented corresponds to aproximatly 2 microseconds
Function Delay($seconds)
{
$start = time();
$stop = $start + $seconds;
$i=0;
$currenttime = time();
while($currenttime<=$stop){
$currenttime = time();
$i++;
}
return $i;
}