note 98271 deleted from function.microtime by visualmind

From: Date: Sat, 05 Jun 2010 14:00:59 +0000
Subject: note 98271 deleted from function.microtime by visualmind
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-169909@lists.php.net to get a copy of this message
Note Submitter: Flo at example dot com ---- // The best way is to use round() function // microtime(); sometimes fails.. this code never failed for me in php5 $SRCTsta = round(microtime(), 5); $SRCresul = $database->query($SRC); $SRCTend = round(microtime(), 5); $SRCDtime = $SRCTend - $SRCTsta; /* this code display a value like this 0.0008 or 0.00619 .. the last 5 numbers you can add a higher number like 6 or 7.. if your query or function is faster and you want to get all numbs and a precise time */

« previous php.notes (#169909) next »