# lagtime

> measure event loop lag

Latest version **1.0.0** (published 2014-05-16) · 0 weekly downloads

## Install

```sh
npm install lagtime
pnpm add lagtime
yarn add lagtime
bun add lagtime
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2014-05-16 |
| First published | 2014-05-16 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matt-Esch |
| Maintainers | mattesch |
| Keywords | event, loop, lag |

## Links

- npm: https://www.npmjs.com/package/lagtime
- Repository: https://github.com/Matt-Esch/lagtime
- Issues: https://github.com/Matt-Esch/lagtime/issues
- npm.io page: https://npm.io/package/lagtime

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2014-05-16

## README

# lagtime

measure event loop lag

## Example

```js
var lagtime = require("lagtime");
var setTimeout = require("timers").setTimeout

var lt = lagtime(function onLagChange(lagTime) {
    // Log the event loop delay
    console.log(lagTime);
});


setTimeout(funtion () {
  lt.shutdown();
}, 10000);
```

## Installation

`npm install lagtime`

## Tests

`npm test`

## Contributors

 - Matt-Esch

## MIT Licenced

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