java 看代码段的执行时间
long startTime = System.currentTimeMillis();
System.out.println(LocalDateTime.now() + "代码段开始时间" + startTime);
.......
long endTime = System.currentTimeMillis();
System.out.println(LocalDateTime.now() + "代码段结束时间" + endTime);
long startTime = System.currentTimeMillis();
System.out.println(LocalDateTime.now() + "代码段开始时间" + startTime);
.......
long endTime = System.currentTimeMillis();
System.out.println(LocalDateTime.now() + "代码段结束时间" + endTime);