function endTimer (hrStart) {
  const hsEnd = process.hrtime(hrStart)
  const secondsAsMs = hsEnd[0] * 1000
  const nanoAsMs = hsEnd[1] / 1000000
  const timeMs = secondsAsMs + nanoAsMs
  console.log(`${timeMs}ms`)
  histogram.update(timeMs)
}
/**
 * ends the timer and adds the value to the histogram
 * @param {[number, number]} hrStart the start of the timer given by process.hrtime()
 */
ends the timer and adds the value to the histogram
@param {[number, number]} hrStart the start of the timer given by process.hrtime()
ends the timer and adds the value to the histogram @param { [ number number ] } hrStart the start of the timer given by process . hrtime ()
function endTimer (hrStart) {
  const hsEnd = process.hrtime(hrStart)
  const secondsAsMs = hsEnd[0] * 1000
  const nanoAsMs = hsEnd[1] / 1000000
  const timeMs = secondsAsMs + nanoAsMs
  console.log(`${timeMs}ms`)
  histogram.update(timeMs)
}
function endTimer ( hrStart ) { const hsEnd = process . hrtime ( hrStart ) const secondsAsMs = hsEnd [ 0 ] * 1000 const nanoAsMs = hsEnd [ 1 ] / 1000000 const timeMs = secondsAsMs + nanoAsMs console . log ( ` ${ timeMs } ` ) histogram . update ( timeMs ) }
ends the timer and adds the value to the histogram
 @param {[number, number]} hrStart the start of the timer given by process.hrtime()
ends the timer and adds the value to the histogram @param { [ number number ] } hrStart the start of the timer given by process . hrtime ()