public long getTimeLeft() {
        return getTimeout() - getDurationTime();
    }
Get the appropriate timeout for the query.

@return timeout in milliseconds
container-search/src/main/java/com/yahoo/search/Query.java