import org.springframework.util.StopWatch;
StopWatch sw = new StopWatch();sw.start("init耗时");应用执行sw.stop();
System.out.println(sw.prettyPrint());System.out.println(sw.getTotalTimeMillis());