Pretty timespan-measurement in sub-milliseconds
npm i timespan-milliseconds
import {now, since} from 'timespan-milliseconds'
const start = now()
// do something
console.log(`took ${since(start)} ms`)
// 'took 1.23 ms'
const {now, since} = require('timespan-milliseconds')
const start = now()
// do something
console.log(`took ${since(start)} ms`)
// 'took 1.23 ms'