uka.bench
Class Timer

java.lang.Object
  extended byuka.bench.Timer

public class Timer
extends java.lang.Object

Author:
Bernhard Haumacher

Nested Class Summary
static class Timer.Statistics
           
 
Field Summary
(package private)  double benchmarkSize
           
(package private)  int calibrations
           
(package private)  boolean doCalibrate
           
(package private) static java.text.DecimalFormat format
           
(package private)  int iteration
           
(package private)  int iterationCnt
          The experiment is repeatet at least iterationCnt times.
(package private)  long loopCnt
           
(package private)  int skipFastest
           
(package private)  int skipSlowest
           
private static java.lang.String TAB
           
(package private)  long[] time
           
 
Constructor Summary
Timer(int iterationCnt)
           
 
Method Summary
 boolean again()
           
 void eval(java.lang.String name)
           
static void headline(java.lang.String name)
           
 void reset(int benchmarkSize)
           
 long start()
           
 long start(long loopCnt)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iterationCnt

final int iterationCnt
The experiment is repeatet at least iterationCnt times. To get stable results, the timer can decide to do several iterations for calibration. These iterations do not count for the final result.


benchmarkSize

double benchmarkSize

format

static java.text.DecimalFormat format

iteration

int iteration

time

final long[] time

loopCnt

long loopCnt

calibrations

int calibrations

doCalibrate

boolean doCalibrate

skipFastest

int skipFastest

skipSlowest

int skipSlowest

TAB

private static java.lang.String TAB
Constructor Detail

Timer

public Timer(int iterationCnt)
Method Detail

reset

public void reset(int benchmarkSize)

start

public long start()

start

public long start(long loopCnt)

stop

public void stop()

again

public boolean again()

headline

public static void headline(java.lang.String name)

eval

public void eval(java.lang.String name)