Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
How to display search time?
Gaurav Jain
Ranch Hand
Posts: 108
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I want to display the search time that is the time required to retrieve records from the database or for that matter time required to get a response from some other application?
Nathaniel Stoddard
Ranch Hand
Posts: 1258
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How about using two Date objects, and finding the difference between the two. (Or using the Calendar).
Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
J�rg Vater
Greenhorn
Posts: 10
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
try this:
long startMillies=System.currentTimeMillis(); //...do your DB-query or whatelse long durationMillies=System.currentTimeMillis()-startMillies;
[ March 17, 2004: Message edited by: J�rg Vater ]
I do some of my very best work in water. Like this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Measuring search response time and displaying on my webpage
image search servlet
Displaying images on JSP page
Help me in java
Showing results fetched in a pop window in Struts2
More...