import ms from 'ms' ; import chalk from 'chalk' ; param time param ago export default function elapsed ( time , ago = false ) { return chalk . gray ( `[${ time < 1000 ? `${ time }ms` : ms ( time ) }${ ago ? ' ago' : '' }]` ) ; }