Skip to content

117/stopwatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An easy-to-use stopwatch for Deno.

Resources

License

Stars

Watchers

Forks