Add timer for caculating execution time