Base class for a variety of benchmarks.
More...
|
| void | setTimeCap (long cap_in_ms) |
| | sets an upper bound to the time of a run.
|
| |
| long | getTimeCap () |
| | Return time limit of a run.
|
| |
Base class for a variety of benchmarks.
This class is not meant to be used directly by students.
◆ Benchmark() [1/2]
| bridges.benchmark.Benchmark.Benchmark |
( |
LineChart |
plot, |
|
|
long |
timeCap |
|
) |
| |
|
package |
◆ Benchmark() [2/2]
| bridges.benchmark.Benchmark.Benchmark |
( |
LineChart |
plot | ) |
|
|
package |
◆ getTimeCap()
| long bridges.benchmark.Benchmark.getTimeCap |
( |
| ) |
|
Return time limit of a run.
The benchmark will end after a run if it takes more than the given amount of time. So it is possible a particular run takes more than the allotted time, but that will be the last run.
- Returns
- the time upper bound (in milliseconds) of a particular run.
◆ setTimeCap()
| void bridges.benchmark.Benchmark.setTimeCap |
( |
long |
cap_in_ms | ) |
|
sets an upper bound to the time of a run.
The benchmark will end after a run if it takes more than the given amount of time. So it is possible a particular run takes more than the alloted time, but that will be the last run.
- Parameters
-
| cap_in_ms | time limit in milliseconds |
◆ plot
| LineChart bridges.benchmark.Benchmark.plot |
|
package |
The documentation for this class was generated from the following file:
- /home/erik/work/bridges/bridges-java/src/main/java/bridges/benchmark/Benchmark.java