timespan-milliseconds
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

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'

Package Sidebar

Install

npm i timespan-milliseconds

Weekly Downloads

3

Version

1.2.0

License

MIT

Unpacked Size

5.86 kB

Total Files

8

Last publish

Collaborators

  • lmzdev