@Override
    public Duration next(int pollCount, Duration previousDuration) {
        Instant now = Instant.now();
        Duration executionDuration = Duration.between(lastTimestamp, now);

        Duration result = interval.minusMillis(Math.min(interval.toMillis(), executionDuration.toMillis()));
        lastTimestamp = now.plus(result);
        return result;
    }
Awaitility {@link org.awaitility.pollinterval.PollInterval} that takes execution time into consideration,
to allow a constant poll-interval, as opposed to Awaitility's default poll-delay behaviour.

@deprecated For internal usage only.
core/src/main/java/org/testcontainers/utility/DynamicPollInterval.java