You are here: Re: Reducing load for LAMP app? « PHP Programming Language « IT news, forums, messages
Re: Reducing load for LAMP app?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация