note 98271 added to function.microtime

From: Date: Sat, 05 Jun 2010 13:33:01 +0000
Subject: note 98271 added to function.microtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-169905@lists.php.net to get a copy of this message
// 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 */ ---- Server IP: 69.147.83.197 Probable Submitter: 95.75.120.72 ---- Manual Page -- http://www.php.net/manual/en/function.microtime.php Edit -- https://master.php.net/note/edit/98271 Del: integrated -- https://master.php.net/note/delete/98271/integrated Del: useless -- https://master.php.net/note/delete/98271/useless Del: bad code -- https://master.php.net/note/delete/98271/bad+code Del: spam -- https://master.php.net/note/delete/98271/spam Del: non-english -- https://master.php.net/note/delete/98271/non-english Del: in docs -- https://master.php.net/note/delete/98271/in+docs Del: other reasons-- https://master.php.net/note/delete/98271 Reject -- https://master.php.net/note/reject/98271 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#169905) next »