long start = System.currentTimeMillis();
//访问接口
xxxServices.apiDao();
long end = System.currentTimeMillis();
log.info("耗时:" + (end - start) + "ms");
请求耗时打印
最新推荐文章于 2024-06-24 22:25:25 发布
long start = System.currentTimeMillis();
//访问接口
xxxServices.apiDao();
long end = System.currentTimeMillis();
log.info("耗时:" + (end - start) + "ms");