INNER CODE UNIT · Java

msLeft

graphql-java/java-dataloader · src/jmh/java/performance/PerformanceTestingUtils.java:54

            long msLeft = runForMillis - (now - then);
            System.out.printf("\t%s Running in loop... %s ms left\n", dtf.format(LocalDateTime.now()), msLeft);
            r.run();
            now = System.currentTimeMillis();
        } while ((now - then) < runForMillis);

        tearDown.run();

        System.out.printf("This ran for %d millis.  Exiting...\n", System.currentTimeMillis() - then);
        System.exit(0);
    }

    private static void readLine() {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try {
            br.readLine();
        } catch (IOException e) {
            throw new RuntimeException(e);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…