|
From: Rod J. <rod...@in...> - 2003-07-02 19:23:31
|
On the subject of cool things Spring does it's easy to forget, look at this:
StopWatch sw = new StopWatch();
sw.start(count + " registrations");
// do stuff
sw.stop();
sw.start("something else");
// do different stuff
sw.stop();
System.out.println(sw.prettyPrint());
The StopWatch class has been in Spring forever, but I guess I never
documented it. I just noticed somebody doing their own
System.currentTimeMillis() calculations at work.
Rod
|