This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes How to Calulate the response Time from a Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "How to Calulate the response Time from a Server" Watch "How to Calulate the response Time from a Server" New topic
Author

How to Calulate the response Time from a Server

chetan raj
Ranch Hand

Joined: Jul 18, 2006
Posts: 34
Hi All,
I have a requirement to calculate the amount of time it take to get a response from a server.
I want to know is there a possibility with any open source api like log4j or any other open source api etc.
using which i can calculate the amount of time it took for a request to get processed.


thanks in advance
Chetan
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 9136
    
    9

Create an instance of URL. Save the system time. Try to read the content (perhaps only one byte from the input stream). Get the system time again. Subtract the first time from the second time. The result is the response time.


[How To Ask Questions On JavaRanch]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How to Calulate the response Time from a Server
 
It's not a secret anymore!