public TimeBudget withDeadline(Instant deadline) {
        return new TimeBudget(clock, start, Optional.of(Duration.between(start, deadline)));
    }
Returns a new TimeBudget with the same clock and start, but with this deadline.
vespajlib/src/main/java/com/yahoo/time/TimeBudget.java