JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q27772F
  • License MIT License

A Stopwatch for JavaScript.

Package Exports

  • stopwatch.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stopwatch.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

stopwatch.js

JavaScript stopwatch

Installation

In node:
npm install stopwatch.js --save

Usage

import { Stopwatch, Output } from 'stopwatch.js'

const stopwatch = new Stopwatch();

stopwatch.start(function(time) {
  console.log(time); // 00:00:01:95, 00:00:02:00, 00:00:02:15, ...
})

stopwatch.stop();

stopwatch.reset();

stopwatch.lap(); // 00:00:02:95

Author

  • Rajeev Sharma

License:

MIT License

Copyright (c) 2017 Rajeev Sharma