get search time from query