Java给各个方法记录执行时间
long startTime = System.currentTimeMillis();
...//要测试时间的方法
LoggerFactory.getLogger(BaseExcelExport.class).warn("查询耗时:"+(System.currentTimeMillis()-startTime)+"");
shmilyGWT 2019-03-14 10:23 原文
Java给各个方法记录执行时间
long startTime = System.currentTimeMillis();
...//要测试时间的方法
LoggerFactory.getLogger(BaseExcelExport.class).warn("查询耗时:"+(System.currentTimeMillis()-startTime)+"");