# plus.timer

> The simplest timer for debug

Latest version **1.0.2** (published 2016-04-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install plus.timer
pnpm add plus.timer
yarn add plus.timer
bun add plus.timer
```

## 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.2 |
| Published | 2016-04-01 |
| First published | 2016-04-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | slava hatnuke |
| Maintainers | slava.hatnuke |
| Keywords | timer, debug |

## Links

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

## Dependencies (1)

- [simple-timer](https://npm.io/package/simple-timer.md) 0.0.5

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2016-04-01
- 1.0.1 — 2016-04-01
- 1.0.0 — 2016-04-01

## README

# plus.timer 
The simplest timer for debug
`npm install plus.timer --save`

#### Example:

```javascript

var timer = require('plus.timer').create('Timer #1');

timer.start();

setTimeout(function () {
    timer.log('Check point #1');

    setTimeout(function () {
        timer.log('Check point #2');

        setTimeout(function () {
            timer.stop();
        }, 300);

    }, 200);

}, 500);
```

#### Output:
```
[timer] Timer #1 started
[timer>] Timer #1 > Check point #1: 505 ms  | [timeline]: 505 ms
[timer>] Timer #1 > Check point #2: 206 ms  | [timeline]: 711 ms
[timer>] Timer #1 > stopping..: 305 ms  | [timeline]: 1016 ms
[timer total] Timer #1 total: 1016 ms
```

Have a nice debug :)
[plus one generation team](http://plus1generation.com)

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