# node-stopwatch

> A stopwatch utility for node.js apps

Latest version **0.0.1** (published 2013-04-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-stopwatch
pnpm add node-stopwatch
yarn add node-stopwatch
bun add node-stopwatch
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2013-04-30 |
| First published | 2013-04-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mauricio Gentile |
| Maintainers | mgentile |
| Keywords | util, node, stopwatch, instrumentation, node.js |

## Links

- npm: https://www.npmjs.com/package/node-stopwatch
- npm.io page: https://npm.io/package/node-stopwatch

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2013-04-30

## README

# node-stopwatch

## Usage

``` js
var Stopwatch = require("node-stopwatch").Stopwatch;

var stopwatch = Stopwatch.create();
stopwatch.start();

/*
my long task here
*/

console.log("ticks: " + stopwatch.elapsedTicks);
console.log("milliseconds: " + stopwatch.elapsedMilliseconds);
console.log("seconds: " + stopwatch.elapsed.seconds);
console.log("minutes: " + stopwatch.elapsed.minutes);
console.log("hours: " + stopwatch.elapsed.hours);

//stop it now
stopwatch.stop();
```

## Methods
```
start();
stop();
reset();
restart();
```
## Installation

### Installing stopwacht

``` bash
  $ npm install node-stopwatch
```

---
_Source: https://npm.io/package/node-stopwatch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
