//Zeit stoppen long start = System.currentTimeMillis(); ... long stop = System.currentTimeMillis(); System.out.println((stop-start)/1000.0);