• 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

finding the timeofday in Java

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I would like to know if there are any methods to get the timeofday() (C eqivalent routine) in Java.
I wanted to calculate time taken for execution of certain part of my code and was not sure how to do it. I thought I can use getimeofday() methods if available in Java before the start of the code and at the end of the code whose performance I am checking.
Can any one please help me with it.....
Or if any one knows how to calculate the time taken for execution of a program in Java.
I am running on a dead line and would appreciate if anyone gives me an idea as how to go about getting the performance of the code.
Regards,
Vamsh
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Vamsh,
Welcome to JavaRanch!
Round these parts, posting the same question in multiple forums is bad practice. It can make it rather difficult to follow a conversation, plus folks spend time saying things that were just said.
Let's mosey on over to The JDBC Forum and see if the answer there doesn't help you out a bit.
 
Vamsh Lingampally
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Dirk,
I am sorry for doing that...I was not sure which forum to post this message. So I tried it with the forums which might be relevant. I am sorry again for doing this and will not spam the JavaRanch in future...
My apologies...
Regards,
Vamshi
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic