StopWatch watch = new StopWatch();
watch.start("A job");
//A job
watch.stop();
watch.start("B job");
//B job
watch.stop();
//分别打印 A/B job 耗时
watch.prettyPrint()
springboot stopwatch
最新推荐文章于 2024-07-23 21:41:01 发布