1.2.0 • Published 3 years ago

easyclock v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

easyclock

Simple npm package to track time.
You can add trackpoints at any time.
You can get the amount of time that passed since a trackpoint.

example code

const Clock = require('easyclock')
Clock1 = new Clock()
Clock1.setTrackpoint(1)
Clock1.addTrackpointXTimeAgo(2,1000)
setTimeout(function(){res()},3000)
function res(){
    console.log(Clock1.getTimeSinceTrackpoint(1))
    console.log(Clock1.getTimeSinceTrackpoint(2))
}
1.2.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago