Long startTime = System.currentTimeMillis();
...... // 代码段
Long endTime = Sytem.currentTimeMillis();
System.out.println(“Totle time is “ + (startTime - endTime) + “milliseconds“);
本文地址:http://com.8s8s.com/it/it15460.htm