stoptime

0.0.2 • Public • Published

stoptime

A basic stop watch timing object for JavaScript.

Install

stable

npm install stoptime

edge

npm install https://github.com/daxxog/stoptime/tarball/master

Usage

(function() {
    var watch = stoptime();
    setTimeout(function() {
        console.log(watch.elapsed());
    }, 100);
    setTimeout(function() {
        console.log(watch.reset().elapsed());
    }, 200);
    setTimeout(function() {
        console.log(watch.elapsed());
    }, 300);
})();

Readme

Keywords

none

Package Sidebar

Install

npm i stoptime

Weekly Downloads

1

Version

0.0.2

License

none

Last publish

Collaborators

  • daxxog