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