计时器

        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

posted on 2016-09-06 17:33  一天不进步,就是退步  阅读(445)  评论(0)    收藏  举报