function measureMilliseconds(name, scope, duration, exclusive) {
  const stats = this.getOrCreateMetric(name, scope)
  stats.recordValueInMillis(duration, exclusive)
  return stats
}
This is the preferred way for interacting with metrics. Set the duration
(and optionally the amount of that duration that was exclusive to that
particular metric and not any child operations to that metric) of an
operation. If there are no data for the name (and optional scope) existing,
the collection will create a set of data before recording the measurement.

@param {string} name The name of the metric.
@param {string} scope (Optional) The scope to which the metric belongs.
@param {number} duration The duration of the related operation, in milliseconds.
@param {number} exclusive (Optional) The portion of the operation specific to this
                          metric.
@returns {Stats} The aggregated data related to this metric.