KentBeck/junit — pull request #552 by Tibor17 (2012-11-19 01:01:05+00:00)
Title: Time Watcher

If you want to measure time spent by a test, you have to do one of the following:

+ use try-finally and measure the time within the test; or
+ use @Before and @After, cache the start time, and compute the time spent in @After. Good luck with parallel tests, because there you have to use ThreadLocal.

The Rules is an elegant solution for that.