Skip to content

Uses closure to provide convenient references to the time of its instantiation and the time it was last called.

Notifications You must be signed in to change notification settings

stevenharderjr/stopWatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

stopWatch

Uses closure to provide convenient, human readable references to the time of its instantiation and the time it was last called.

Usage

const checkWatch = require('stopWatch.js');

const time = checkWatch();

time.display.total === '0 ms'

After ~30 seconds:

time.display.total === '30 seconds'

time.display.lap === '30 seconds'

After ~30 more seconds:

time.display.total === '1.05 minutes'

time.display.lap === '31 seconds'

About

Uses closure to provide convenient references to the time of its instantiation and the time it was last called.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published