Java给各个方法记录执行时间

long startTime = System.currentTimeMillis();
...//要测试时间的方法
LoggerFactory.getLogger(BaseExcelExport.class).warn("查询耗时:"+(System.currentTimeMillis()-startTime)+"");

相关文章:

  • 2021-08-24
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
相关资源
相似解决方案