>From: Steven Elliott <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: Re: measuring round trip time
>Date: Wed, 12 Jun 2002 17:49:58 +0100
>
>On 12/06/02 17:03, "[EMAIL PROTECTED]"
><[EMAIL PROTECTED]> wrote:
>
> > From: [EMAIL PROTECTED]
> > Date: Wed, 12 Jun 2002 17:32:19 +0200
> > To: [EMAIL PROTECTED]
> > Subject: measuring round trip time
> >
> > Hi All
> >
> > I would like to measure the round trip time for packets from tomcat to a
> > client (and back). Is ther a simple way to do this (I just can immagine 
>a
> > "complex" one using an applet ...).
> >
> > Thank for any tip
> > Philipp
>
>I use a combination of javascript ( Date.parse(new Date() ) will give you
>milliseconds for client side round trip).  Server side use
>System.currentTimeMillis() for measuring roundtrip and other internals such
>as measuring Connections, database query times, et al.
>
>It all then gets displayed in a separate browser window and updates upon
>each client request.  Mostly use it for debugging.  Problem is that
>Microsoft claims that their browser supports millisecond date functions but
>it appears that it is only second accurate.  Still I find it useful and of
>course the server side timings are accurate.
>
>You don't need an applet which would just introduce additional overhead not
>related to the timings?

I should of know that JavaScript was available when you said applet. If 
thats the case images have an onLoad method which you can use to fire the 
timer in the fashion that he was speaking.

>
>HTH
>
>Steven
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>




_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to