note 9393 added to microtime

From: Date: Tue, 31 Oct 2000 22:18:21 +0000
Subject: note 9393 added to microtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-7221@lists.php.net to get a copy of this message
Actually that method is incorrect. It is yielding a difference of 70 seconds when it should be seven for the following example. Why you might ask? Because you forget there is a leading 0 on the msec value. 9730306660.12836000 9730306730.91463800 Execution Time = 70.786277770996 seconds. The real time is 973030706.37022 973030714.13791 Execution Time = 7.7676899433136 seconds. http://www.php.net/manual/function.microtime.php

« previous php.notes (#7221) next »