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? HTH Steven -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
