package grundlagen; public class TempoClass2 { public static void main(String[] args) { final long timeStart = System.nanoTime(); for (int i = 0; i < 1000000; i++) { // nichts machen } final long timeEnd = System.nanoTime(); System.out.println("Verlaufszeit der Schleife: " + (timeEnd - timeStart) + " Nanosek."); } }