refactored get_response_time