note 111107 added to function.microtime

From: Date: Tue, 15 Jan 2013 16:31:57 +0000
Subject: note 111107 added to function.microtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-193076@lists.php.net to get a copy of this message
You can use one variable to check execution $time as follow: $time = -microtime(true); $hash = 0; for ($i=0; $i < rand(1000,4000); ++$i) { $hash ^= md5(substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, rand(1,10))); } $time += microtime(true); echo "Hash: $hash iterations:$i time: ",sprintf('%f', $time),PHP_EOL; ---- Server IP: 91.199.167.223 Probable Submitter: 85.17.123.106 ---- Manual Page -- http://php.net/manual/en/function.microtime.php Edit -- https://master.php.net/note/edit/111107 Del: integrated -- https://master.php.net/note/delete/111107/integrated Del: useless -- https://master.php.net/note/delete/111107/useless Del: bad code -- https://master.php.net/note/delete/111107/bad+code Del: spam -- https://master.php.net/note/delete/111107/spam Del: non-english -- https://master.php.net/note/delete/111107/non-english Del: in docs -- https://master.php.net/note/delete/111107/in+docs Del: other reasons-- https://master.php.net/note/delete/111107 Reject -- https://master.php.net/note/reject/111107 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#193076) next »