stopWatch监测应用耗时

import org.springframework.util.StopWatch;


StopWatch sw = new StopWatch();
sw.start("init耗时");
应用执行
sw.stop();
System.out.println(sw.prettyPrint());
System.out.println(sw.getTotalTimeMillis());
原文地址:https://www.cnblogs.com/meadow/p/15691931.html