morfologik.util
Class PerformanceTimer

java.lang.Object
  extended by morfologik.util.PerformanceTimer

public final class PerformanceTimer
extends java.lang.Object

Simple, simple performance checking.


Constructor Summary
PerformanceTimer()
           
 
Method Summary
 long elemsPerSecond(int sequences)
           
static PerformanceTimer run(java.util.concurrent.Callable<java.lang.Void> task, int warmupRounds, int cycles)
          Run the task with a given number of warm-up rounds and the given number of cycles.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PerformanceTimer

public PerformanceTimer()
Method Detail

run

public static PerformanceTimer run(java.util.concurrent.Callable<java.lang.Void> task,
                                   int warmupRounds,
                                   int cycles)
Run the task with a given number of warm-up rounds and the given number of cycles.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

elemsPerSecond

public long elemsPerSecond(int sequences)