1.0.2 • Published 2 years ago

@steeringwaves/stopwatch v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

js-stopwatch

workflow

A node utility to help keep track of time.

Example

const { Stopwatch } = require("@steeringwaves/stopwatch");

const stopwatch = new Stopwatch();
stopwatch.Init(5000);
stopwatch.Start();

stopwatch.on(Stopwatch.EVENTS.EXPIRED, (when) => {
	console.log("expired at", when);
	stopwatch.Restart();
});

setInterval(() => {
	console.log("stopwatch time:", stopwatch.Get());
}, 1000);
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago