计时器StopWatch示例

计时器

        StopWatch stwatch = new StopWatch(getClass().getSimpleName());
        try{
            stwatch.start(joinPoint.getSignature().getName());
            //logic 
        }finally{
            stwatch.stop();
            System.out.println(stwatch.prettyPrint());
        }

 参考文献:

【1】http://www.concretepage.com/spring/stopwatch-spring-example

原文地址:https://www.cnblogs.com/davidwang456/p/5846565.html