java 代码运行时间
long startTime; 33 long endTime; 34 startTime = System.currentTimeMillis(); 35 ...... 38 endTime = System.currentTimeMillis(); 39 long interval = endTime - startTime; 40 System.out.println( interval+" ms");
long startTime; 33 long endTime; 34 startTime = System.currentTimeMillis(); 35 ...... 38 endTime = System.currentTimeMillis(); 39 long interval = endTime - startTime; 40 System.out.println( interval+" ms");