Add timer to track elapsed time for each query