MCPcopy Create free account
hub / github.com/ForOhForError/Yet-Another-Magic-Card-Recognizer / time

Method time

src/Benchmark.java:79–88  ·  view source on GitHub ↗
(String name, IntWriter writer, int[] ints)

Source from the content-addressed store, hash-verified

77 }
78
79 private static double time(String name, IntWriter writer, int[] ints) {
80 long start = System.nanoTime();
81 writer.write(ints);
82 long end = System.nanoTime();
83 double ms = (end - start) / 1000000d;
84 return ms;
85 // System.out.printf("%s wrote %,d ints in %,.3f ms%n", name,
86 // ints.length,
87 // ms);
88 }
89
90 // ========================================================================
91 // tests

Callers 1

mainMethod · 0.95

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected