Re: Reducing load for LAMP app?



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.";
.



Relevant Pages

  • Re: Reducing load for LAMP app?
    ... $starttimer = time+microtime; ... // run script code here $stoptimer = time+microtime; ... echo "Page created in $timer seconds."; ...
    (comp.lang.php)
  • 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: 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: using the Zilog Z8 encore for the ultrasonic distance calculation.
    ... figure out what resolution you want in your distance measurement. ... research the accuracy of the ultrasonic transducer you have. ... Set your timer to this period. ... when echo is received, stop timer. ...
    (comp.robotics.misc)
  • Re: How to call a function from CASE block
    ... I have this script code (snippet below). ... CASE block 1, it gives error (myFunc command not ... echo "You have selected 1" ...
    (comp.unix.shell)