simple robust running-time calculation for java, for simple benchmarking
Java
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
lib
src/com/wordenskjold/benchmarker
README

README

Simple Benchmarker for small running-time measurements.
Pass a Runnable or a Benchmarkable to a BenchMarker object, and call start to measure the running time in ms of the method or runnable.


Example usage:

new BenchMarker(new Runnable(){
  public void run() {
  // Do something!
  }}).start();

You can set the number of method-executions manually:

benchmarker.setAccuracy(20);
benchmarker.start();

See more in the src for BenchMarker.