Basically I agree with you. But the second time to get time must be done
after the page is rendered on local browser. So I suggest to use Javascript
for the second time to get time, and pass the first time value into a js
function.

Alex


----- Original Message -----
From: "Andrew Forgue" <[EMAIL PROTECTED]>
To: "Jack Dempsey" <[EMAIL PROTECTED]>; "Torkil Johnsen"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, December 08, 2001 9:42 PM
Subject: Re: [PHP] How to compute time to load page...


> Or this:
>
> at the beginning of your script, get the time using microtime
> then at the bottom, you could  get the time again, subtract
> the difference and voila, thats how long the execution time
> of your script is.
>
> -ajf
>
> ----- Original Message -----
> From: "Jack Dempsey" <[EMAIL PROTECTED]>
> To: "Torkil Johnsen" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Saturday, December 08, 2001 7:59 PM
> Subject: RE: [PHP] How to compute time to load page...
>
>
> > the search time is different than the page load time....google for
example
> > can find thousands of records in a tenth of a second, yet it takes
longer
> to
> > get that html result back to your browser....you could estimate page
> > download time by calculating the filesize and using the connection
> > speed....certainly not 100% accurate, but it will give you a way of
> > estimating.....
> >
> > jack
> >
> > -----Original Message-----
> > From: Torkil Johnsen [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, December 08, 2001 7:14 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] How to compute time to load page...
> >
> >
> > Hi All... (again)
> >
> > I was just wondering if anyone out there has made a function that will
> > compute how long time (seconds, milliseconds) it will take to load a
page?
> >
> > I see some search engines have a function that displays how long time
the
> > search took, and I'm looking for the same thing, to compare different
> > designs and improve loading time for my "viewers".
> >
> > Anyone?
> > - Torkil Johnsen
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to