An easy-to-use stopwatch for Deno.
- Simple and easy to use.
- Measures elapsed time accurately.
For Deno:
$ deno add @117/stopwatch
import { createStopwatch } from "@117/stopwatch";
const stopwatch = createStopwatch();
stopwatch.start();
await new Promise((resolve) => setTimeout(resolve, 150));
stopwatch.stop();
console.log(stopwatch.getElapsedTime());
Feel free to contribute and PR to your 💖's content.