1.2.0 • Published 3 years ago
easyclock v1.2.0
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))
}