Re: Reducing load for LAMP app?
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Sun, 06 Jan 2008 14:19:14 -0500
Gilles Ganault wrote:
On Sun, 06 Jan 2008 19:54:05 +0100, "Rik Wasmus"
<luiheidsgoeroe@xxxxxxxxxxx> 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@xxxxxxxxxxxxx
==================
.
- Follow-Ups:
- Re: Reducing load for LAMP app?
- From: Gilles Ganault
- Re: Reducing load for LAMP app?
- References:
- Reducing load for LAMP app?
- From: Gilles Ganault
- Re: Reducing load for LAMP app?
- From: Richard
- Re: Reducing load for LAMP app?
- From: Gilles Ganault
- Re: Reducing load for LAMP app?
- From: Jerry Stuckle
- Re: Reducing load for LAMP app?
- From: Gilles Ganault
- Re: Reducing load for LAMP app?
- From: Jerry Stuckle
- Re: Reducing load for LAMP app?
- From: Gilles Ganault
- Re: Reducing load for LAMP app?
- From: Rik Wasmus
- Re: Reducing load for LAMP app?
- From: Gilles Ganault
- Reducing load for LAMP app?
- Prev by Date: Re: best approach to caching DB results
- Next by Date: Re: Shopping Cart Hell
- Previous by thread: Re: Reducing load for LAMP app?
- Next by thread: Re: Reducing load for LAMP app?
- Index(es):
Relevant Pages
|