So I was trying to measure the time two different algorithm implementations took to accomplish a given task, and here is the result:
i alg1 alg2 4 0.00
System.nanoTime(); perhaps, is what you're looking for. And add calculations for standard deviation and average time.
System.nanoTime();