microwatch

0.1.2 • Public • Published

microwatch

Stopwatch with microseconds (1/1000th of millisecond) resolution

Install

npm install microwatch

Usage

// microsecond microwatch
stopwatch = new require('microwatch')() // start() automatically called
stopwatch.start() // start watch at 0
duration  = stopwatch.now() // 1
 
// floating point microwatch in seconds
stopwatch = new require('microwatch')(true) // start() automatically called
stopwatch.start() // start watch at 0
duration  = stopwatch.now() // 0.000001

License

MIT

Dependents (1)

Package Sidebar

Install

npm i microwatch

Weekly Downloads

1

Version

0.1.2

License

none

Last publish

Collaborators

  • angleman