oop-labs-collection/labs/3/Benchmarker.java

14 lines
401 B
Java
Raw Permalink Normal View History

import lab3lib.Finder;
public class Benchmarker {
public static void main(String[] args) {
System.out.print("Timing object creation...");
long startTime = System.nanoTime();
Finder obj = new Finder();
long endTime = System.nanoTime();
System.out.println(" Finished!");
System.out.println("Operation took " + (endTime - startTime) + "ns");
}
}