code: public long getDurationInMilliseconds(String name, long defaultValue) {
          TimeUnit timeUnit = extractTimeUnit(name, defaultValue + " MILLISECONDS");
          long duration = getLong(name, defaultValue);
  
          return timeUnit.toMillis(duration);
      }
docs: Gets the duration setting and converts it to milliseconds.
  <p/>
  The setting must be use one of the following conventions:
  <ul>
  <li>n MILLISECONDS
  <li>n SECONDS
  <li>n MINUTES
  <li>n HOURS
  <li>n DAYS
  </ul>
  
  @param name
  @param defaultValue in milliseconds
  @return milliseconds