Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 843 Bytes

README.md

File metadata and controls

44 lines (28 loc) · 843 Bytes

stopwatch

version status

An easy-to-use stopwatch for Deno.

Contents

Features

  • Simple and easy to use.
  • Measures elapsed time accurately.

Install

For Deno:

$ deno add @117/stopwatch

Example

import { createStopwatch } from "@117/stopwatch";

const stopwatch = createStopwatch();

stopwatch.start();
await new Promise((resolve) => setTimeout(resolve, 150));
stopwatch.stop();

console.log(stopwatch.getElapsedTime());

Contributing

Feel free to contribute and PR to your 💖's content.