1 long t = System.currentTimeMillis(); 2 //Long sum = 0L; 3 long sum = 0L; 4 for (long i = 0; i < Integer.MAX_VALUE; i++) { 5 sum += i; 6 } 7 System.out.println("toplam:" + sum); 8 System.out.println("islem süresi: " + (System.currentTimeMillis() - t) + " ms") ; 9