Package org.perf4j

Examples of org.perf4j.StopWatch.start()


      }
      //List<Integer> ints = Arrays.asList(8, 6, 7, 1, 4, 3, 2, 5);
      //InversionCounter counter = new InversionCounterStupidImpl();
      InversionCounter counter = new InversionCounterMergeImpl();
      StopWatch sw = new StopWatch("inversions count");
      sw.start();
      System.out.println("Inversions count: " + counter.count(ints));
      sw.stop();
      System.out.println("Count time: " + sw.getElapsedTime());
    } catch (IOException e) {
      e.printStackTrace();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.