updateDuration(segment, span) {
    segment.touch()
    const duration = hrTimeToMilliseconds(span.duration)
    segment.overwriteDurationInMillis(duration)
  }
Updates the segment duration from the span duration
@param {object} segment - The segment to update.
@param {object} span - The span to get the duration from.