code: func (r *Timing) Percentile(p float64) uint32 {
  	sortedDurations := r.SortedDurations()
  	length := len(sortedDurations)
  	if length <= 0 {
  		return 0
  	}
  
  	pos := r.ordinal(len(sortedDurations), p) - 1
  	return uint32(sortedDurations[pos].Nanoseconds() / 1000000)
  }
docs: // Percentile computes the percentile given with a linear interpolation.