output time taken for query