docs: public void setMaxTime(double maxTime)
      {
          if(maxTime <= 0 || Double.isInfinite(maxTime) || Double.isNaN(maxTime))
              throw new RuntimeException("maxTime should be positive, not " + maxTime);
          this.maxTime = maxTime;
      }