public long getNextPendingCommandDelay() {
    if (getPendingCount() == 0) {
      throw new IllegalStateException();
    }
    return deltaQueue.delay();
  }
Returns how much time left until next command.

<p>If there are no pending commands left will throw and exception.
imagepipeline-base-test/src/main/java/com/facebook/imagepipeline/testing/ScheduledQueue.java