code: public void setPaceInSec(int paceInSec) {
          this.speed = null;
          this.paceInSec = Math.max(0, Math.min(paceInSec, 3599));
      }
docs: Set the current pace in seconds per kilometer or seconds per mile.
  
  The possible range is currently limited from 0 to 3599,
  inclusive (59min 59sec). Values larger or smaller than the limits will be
  transformed into the maximum or minimum, respectively.
  
  It will be presented as a duration string in the UI. Minutes and seconds will
  be separated by colons.
  
  Currently pace and speed cannot be presented at the same time. Setting speed
  will discard the value set through pace.
  
  @param paceInSec
  The pace to set, in seconds per kilometer or seconds per mile.