Add time method for benchmarks