获取一段代码执行花费的时长
摘要:一、以毫秒为单位。long startTime = System.currentTimeMillis(); //开始时间 //测试的代码段 long endTime = System.currentTimeMillis(); //结束时间 System.out.println("程序运行时间:" +
阅读全文
posted @ 2019-10-23 10:45
posted @ 2019-10-23 10:45
posted @ 2019-10-17 16:23
posted @ 2019-10-16 16:29