uka.bench
Class Timer
java.lang.Object
uka.bench.Timer
- public class Timer
- extends java.lang.Object
- Author:
- Bernhard Haumacher
|
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 |
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
Timer
public Timer(int iterationCnt)
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)