adding code for time benchmarking