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.
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.
Actually, I would like to know how much CPU cycles a function takes.
I believe, there is not built in support for that.
I don't think there is any such thing available.