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));
欢迎分享,转载请注明来源:内存溢出
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));
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)