Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 633 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 633 Bytes

timespan-milliseconds

run tests

Pretty timespan-measurement in sub-milliseconds

Install

npm i timespan-milliseconds

Import

import {now, since} from 'timespan-milliseconds'

const start = now()
// do something
console.log(`took ${since(start)} ms`)
// 'took 1.23 ms'

Require

const {now, since} = require('timespan-milliseconds')

const start = now()
// do something
console.log(`took ${since(start)} ms`)
// 'took 1.23 ms'