note 18800 added to function.localtime

From: Date: Wed, 06 Feb 2002 06:24:09 +0000
Subject: note 18800 added to function.localtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-26284@lists.php.net to get a copy of this message
Be VERY careful with microtime() on windows (ME edition in my case): it has not to be really trusted... I've made this simple test and watch the result: (almost 50% of the times i run it) $init = microtime(); for ($i = 1;$i<10 ; $i++) { $e = dir; } $end = microtime(); print "$init - $end"; The result is: 0.85252000 1012976406-0.17412900 1012976406 As you see, it give me a end time BEFORE init time ?!? Atte Phil -- http://www.php.net/manual/en/function.localtime.php http://master.php.net/manage/user-notes.php?action=edit+18800 http://master.php.net/manage/user-notes.php?action=delete+18800 http://master.php.net/manage/user-notes.php?action=reject+18800

« previous php.notes (#26284) next »