Skip to content

daxxog/stoptime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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);
})();

About

A basic stop watch timing object for JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published