This posting has high GEEK content.
How many times have you wanted to get a feel for how long a particular method takes to execute? Every time I wanted to do that I would create a long to hold the current system time at the start of the method, and then create another long at the end of the method. Then some basic math, and you know how long it took to run.
OK, so that's not super painful, but I just came across "StopWatch" in the org.apache.commons.lang.time package.
I was just about to write my own stop watch, and then thought "I can't be the first guy who wants this." Thanks Henri Yandell and Stephen Colebourne. I love NOT coding even more then I love coding!
No comments:
Post a Comment