# metrics-timer

> Simple timer for use in application metrics

Latest version **0.1.0** (published 2014-06-13) · 0 weekly downloads

## Install

```sh
npm install metrics-timer
pnpm add metrics-timer
yarn add metrics-timer
bun add metrics-timer
```

## 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.1.0 |
| Published | 2014-06-13 |
| First published | 2014-06-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Marcus Stong |
| Maintainers | stongo |
| Keywords | metrics, performance, timer |

## Links

- npm: https://www.npmjs.com/package/metrics-timer
- Repository: https://github.com/stongo/metrics-timer
- Issues: https://github.com/stongo/metrics-timer/issues
- npm.io page: https://npm.io/package/metrics-timer

## Dependencies (1)

- [moment](https://npm.io/package/moment.md) ^2.7.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2014-06-13

## README

# Metrics Timer

Simple timer for use in application metrics

## Example Usage

```javascript
var timer = require('metrics-timer');
var myEvent = require('foo');

myEvent.on('connect', function(id) {

    timer.start(id);
});

myEvent.on('disconnect', function(id) {

    var eventTime = timer.stop(id);

    // outputs milliseconds
    console.log(eventTime);
});
```

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