I would like to add timing information to a method. My current strategy is:
* Copy the method in question to another method with a different name * Add a new method with the old name ** record current time at the start of the new method ** Execute the renamed method and store return value if it has one ** Print out the time difference at the bottom
Now, this is all fine, but these timing values have no value for me as System.out.prinln's. I would like to be able to retreive these values somehow and process them programmatically, or even to log the information to a seperate log file, etc ?