|
Posted by Jerry Stuckle on 01/06/08 19:19
Gilles Ganault wrote:
> On Sun, 06 Jan 2008 19:54:05 +0100, "Rik Wasmus"
> <luiheidsgoeroe@hotmail.com> wrote:
>> microtime(true);, check the output :P
>
> Yup :-) This looks more usable:
>
> $starttimer = time()+microtime();
> // run script code here
> $stoptimer = time()+microtime();
> $timer = round($stoptimer-$starttimer,4);
> echo "Page created in $timer seconds.";
>
Gilles,
You don't need time() calls. Just:
$starttimer = microtime(true);
// ...
$stoptimer = microtime(true);
... etc...
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|