【发布时间】:2010-04-03 22:24:20
【问题描述】:
你如何为 java 程序的执行计时?我不确定我应该使用哪个类来执行此操作。
我正在寻找类似的东西:
// Some timer starts here
for (int i = 0; i < length; i++) {
// Do something
}
// End timer here
System.out.println("Total execution time: " + totalExecutionTime);
【问题讨论】:
标签: java