I have a func a(x, y z) that would like to time, is there a way to this:
time = timeit( a(x,y,z) ) in java, time it would accept any func.
like:
long timeit(Object func){
long startTime = System.currentTimeMillis();
func(...);
return System.currentTimeMillis() - startTime;
}