public interface JLBHTask
Modifier and Type | Method and Description |
---|---|
default void |
complete()
This method is used for any clean up that might be required by the benchmark.
|
void |
init(JLBH jlbh)
This method is called before the benchmark is started.
|
void |
run(long startTimeNS)
This method is called for each iteration of the benchmark.
|
void init(JLBH jlbh)
jlbh
- A reference to the JLBH which is needed so that jlbh.sample()>
can be invoked when the benchmark is complete. It can also be used to
create more probes into the benchamrk.
void run(long startTimeNS)
System.nanoTime()>.
It is the calculated time that the test is supposed to have started.
startTimeNS
- The time that should be used as the start time for the sample.default void complete()
Copyright © 2016. All rights reserved.