public abstract class Benchmark {
    
    public abstract void benchmark();
    
    public final long repeat(int count) {
	long start = System.currentTimeMillis();
	for (int i = 0; i < count; ++i) {
	    benchmark();
	}
	return (System.currentTimeMillis() - start);
    }
}
