📜  java 时间码 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:17.941000             🧑  作者: Mango

代码示例1
final long startTime = System.currentTimeMillis();
for (int i = 0; i < length; i++) {
  // Do something
}
final long endTime = System.currentTimeMillis();

System.out.println("Total execution time: " + (endTime - startTime));