# neo-timer

> neo-timer --

Latest version **0.2.0** (published 2015-10-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install neo-timer
pnpm add neo-timer
yarn add neo-timer
bun add neo-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.2.0 |
| Published | 2015-10-02 |
| First published | 2015-09-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | suguru03 |

## Links

- npm: https://www.npmjs.com/package/neo-timer
- Repository: https://github.com/suguru03/neo-timer
- Homepage: https://github.com/suguru03/neo-timer#readme
- Issues: https://github.com/suguru03/neo-timer/issues
- npm.io page: https://npm.io/package/neo-timer

## Recent versions

- 0.2.0 (latest) — 2015-10-02
- 0.1.0 — 2015-09-16

## README

neo-timer
--

neo-timer can be used as a timer or stopwatch.

The timer is selected automatically by your environment.

## functions

### init

### start

### diff

### lap

### result


## example

```js

'use strict';

var Timer = require('../');
var timer = new Timer({
  MAX_LAP_LENGTH: 100
});

var count = 0;
var times = 100;

timer.init().start();

var iter = function() {
  setTimeout(function() {
    clearTimeout(iter);
    timer.lap();
    if (count === times) {
      console.log(timer.result());
    } else {
      iter();
    }
  }, Math.random() * 10 * ++count);
};

iter();

```

![graph](https://cloud.githubusercontent.com/assets/8013633/9806130/b987462c-587b-11e5-8d7e-c5ed9a9a564a.png)

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