long () { long start = System.nanoTime(); for (int i = 0; i < WARM_UP_PROBES; i++) { singleIteration(i, true); } long warmupMinutes = TimeUnit.NANOSECONDS.toMinutes(System.nanoTime() - start); if (warmupMinutes > 1) { //noinspection UseOfSystemOutOrSystemErr System.out.println("Too long warmup: " + warmupMinutes + " minutes"); } start = System.nanoTime(); for (int i = 0; i < IO_PROBES; i++) { singleIteration(i, i == IO_PROBES - 1); } return TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - start); }