|
From: Kopylenko, D. <dko...@ac...> - 2003-07-02 20:14:39
|
Yes, and there is a PerformanceMonitorInterceptor that could advice any
component (with interface of course :-) which uses StopWatch underneath.
Dmitriy.
-----Original Message-----
From: Rod Johnson [mailto:rod...@in...]
Sent: Wednesday, July 02, 2003 3:23 PM
To: spr...@li...
Subject: [Springframework-developer] Trivial bit of cool Spring
functionality
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
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data
Reports, E-commerce, Portals, and Forums are available now. Download today
and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|