Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-23-2007, 03:34 PM
Member
 
Join Date: Nov 2007
Posts: 97
javaplus is on a distinguished road
Method execution time
I have few methods and I want to know the time it takes to execute each. Does java provides some support for that? I can sore the time before calling the method and then subtract it from the time the methods returns. But meanwhile, some other processes will also be running on my machine. So it wont depict the right picture.

Thanks in advance.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-23-2007, 08:31 PM
Senior Member
 
Join Date: Nov 2007
Location: Newport, WA
Posts: 141
staykovmarin is on a distinguished road
No there isn't built in support for that.

I don't understand why that wont work? You are always going to have other processes running on your machine, there is no way to test method execution time WITHOUT any processes running.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 11-23-2007, 09:22 PM
Member
 
Join Date: Nov 2007
Posts: 97
javaplus is on a distinguished road
Actually, I would like to know how much CPU cycles a function takes.
I believe, there is not built in support for that.

Thanks.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 11-26-2007, 10:51 AM
Member
 
Join Date: Nov 2007
Posts: 12
javagk is on a distinguished road
I don't think there is any such thing available.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Package/Execution woes... Hiro ZA New To Java 2 01-09-2008 08:42 AM
Execution methods – Reflection Java Tip Java Tips 0 11-15-2007 04:19 PM
Time method carderne New To Java 5 11-05-2007 10:34 AM
Time restricted method toby New To Java 1 08-07-2007 06:54 AM
Execution cut Eric Advanced Java 1 06-27-2007 04:52 PM


All times are GMT +3. The time now is 03:39 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org