1 long start,end; 2 start = System.currentTimeMillis(); 3 for (int i = 0; i < 2000000000; i++) {} 4 end = System.currentTimeMillis(); 5 System.out.println("Run Time:" + (end - start) + "(ms)");
1 long start,end; 2 start = System.currentTimeMillis(); 3 for (int i = 0; i < 2000000000; i++) {} 4 end = System.currentTimeMillis(); 5 System.out.println("Run Time:" + (end - start) + "(ms)");