Re: Reducing load for LAMP app?



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
==================

.



Relevant Pages

  • Re: Monitoring Machine Running Time
    ... Also, if the OP is looking for sub second timing, the form timer event may ... Private lngStartTime As Long ... Public Sub StartTimer() ... Public Function StopTimer() As Long ...
    (microsoft.public.access.gettingstarted)
  • Re: Reducing load for LAMP app?
    ... // run script code here ... $stoptimer = time+microtime; ... echo "Page created in $timer seconds."; ...
    (comp.lang.php)
  • Re: Reducing load for LAMP app?
    ... $starttimer = microtime; ... $stoptimer = microtime; ... Jerry Stuckle ... JDS Computer Training Corp. ...
    (comp.lang.php)
  • Re: Creating Function wrapper for a group of funtions
    ... I've created a group of functions related to a timer event. ... var secs = 5; ... Note that anything you want to call using setTimeout must be public, e.g. counterStatus. ...
    (comp.lang.javascript)
  • Re: Timer
    ... > timer functions. ... > fails to run when I open the second excel file. ... Is there a reason you're using StartTimer and KillTimer (i.e. API-level ...
    (microsoft.public.excel.programming)