public long endedTime() {
        if (isDone()) {
            return callable.getEnded();
        }
        throw new IllegalStateException("Task is not done yet");
    }
@return the time in millis the task was finished/cancelled.
httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/HttpRequestFutureTask.java