The cycle you describe below includes both the server response time (3 
and 4) as well as the internet response time from a particular client 
using a particular internet connection (1 and 4) as well as the time for 
the client's particular browser to render the HTML (4).

If you're really only concerned about the time it takes your server to 
process a request (i.e. like how long it takes a PHP script to run), use 
the PHP microtime function.  The PHP manual even has an example of how 
to use it for that specific purpose.

There are so many variables with trying to time the whole cycle that it 
is probably not worth it.  You could use Javascript on the client side 
to do that if you really wanted to though.

Hope that helps.

Best regards,
Jim Mullen
iDimensionz <http://www.idimensionz.com> - professional web site 
programming and affordable web site hosting.

HELLBOY wrote:
>
> Hi,
> Can anyone help me?
>
> Say a request goes through cycle 1-2-3-4.
>
> 1.Client Sends request to server.
> 2.Server receives request.
> 3.Server sends response.
> 4.Client receives response & display it.
>
> client timezone & server timezone both are different.
>
> I NEED TO CALCULATE SERVER RESPONSE TIME.
> How can i od it?
>
> Thnaks In Advance.
> -- 
> http://phpinterviewanswers.blogspot.com/ 
> <http://phpinterviewanswers.blogspot.com/>
>
> [Non-text portions of this message have been removed]
>
> _


[Non-text portions of this message have been removed]

Reply via email to