note 26166 added to function.microtime

From: Date: Mon, 21 Oct 2002 08:43:00 +0000
Subject: note 26166 added to function.microtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-38350@lists.php.net to get a copy of this message
My microtime function doesn't seem to know which way is up. I include a file in every script. The first line of code in the include file is $begin_time = microtime(); A function within the include file is the LAST thing called during script execution. it says: global $begin_time; $total time = microtime() - $begin_time; Now the outcome is (very strange) sometimes negative, sometimes positive. Always around 0.2 through -0.2. -- http://www.php.net/manual/en/function.microtime.php http://master.php.net/manage/user-notes.php?action=edit+26166 http://master.php.net/manage/user-notes.php?action=delete+26166 http://master.php.net/manage/user-notes.php?action=reject+26166

« previous php.notes (#38350) next »