Add a timer to benchmark.