#40702 [Opn->Bgs]: Microtime Not Working Properly
| From: | noah at rave dot ca | Date: | Sat, 03 Mar 2007 06:04:22 +0000 |
| Subject: | #40702 [Opn->Bgs]: Microtime Not Working Properly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-109816@lists.php.net to get a copy of this message | ||
ID: 40702
User updated by: noah at rave dot ca
Reported By: noah at rave dot ca
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Windows
PHP Version: 5.2.1
New Comment:
Sorry my mistake...
Previous Comments:
------------------------------------------------------------------------
[2007-03-03 06:02:17] noah at rave dot ca
Description:
------------
When subtracting endtime from start time gets a negative number...
Reproduce code:
---------------
<?
$start_time = microtime();
$end_time = microtime();
$run_time = $time_end - $start_time;
echo '[' . $end_time . '] - [' . $start_time . '] = [' . $run_time .
']';
?>
Expected result:
----------------
A positive number...
Actual result:
--------------
[0.13353900 1172901538] - [0.13351700 1172901538] = [-0.133517]
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40702&edit=1