Results 1 to 4 of 4
Thread: Method execution time
- 11-23-2007, 02:34 PM #1
Member
- Join Date
- Nov 2007
- Posts
- 97
- Rep Power
- 0
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.
- 11-23-2007, 07:31 PM #2
Senior Member
- Join Date
- Nov 2007
- Location
- Newport, WA
- Posts
- 141
- Rep Power
- 0
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.
- 11-23-2007, 08:22 PM #3
Member
- Join Date
- Nov 2007
- Posts
- 97
- Rep Power
- 0
Actually, I would like to know how much CPU cycles a function takes.
I believe, there is not built in support for that.
Thanks.
- 11-26-2007, 09:51 AM #4
Member
- Join Date
- Nov 2007
- Posts
- 12
- Rep Power
- 0
Similar Threads
-
Package/Execution woes...
By Hiro ZA in forum New To JavaReplies: 2Last Post: 01-09-2008, 07:42 AM -
Execution methods – Reflection
By Java Tip in forum Java TipReplies: 0Last Post: 11-15-2007, 03:19 PM -
Time method
By carderne in forum New To JavaReplies: 5Last Post: 11-05-2007, 09:34 AM -
Time restricted method
By toby in forum New To JavaReplies: 1Last Post: 08-07-2007, 05:54 AM -
Execution cut
By Eric in forum Advanced JavaReplies: 1Last Post: 06-27-2007, 03:52 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks