code: public long getStarvingTime(long now) {
      long starvingTime = Math.max(
          getMinimumStarvingTime(now), getShareStarvingTime(now));
      return starvingTime;
    }
docs: Get the amount of time the pool was starving for either its min share
  or its share
  @param now the current timestamp
  @return the amount of time the pool was starving