# node-simple-timer

> A bare-bones timer for JavaScript - implemented in TypeScript.

Latest version **0.1.1** (published 2018-06-01) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install node-simple-timer
pnpm add node-simple-timer
yarn add node-simple-timer
bun add node-simple-timer
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2018-06-01 |
| First published | 2018-04-29 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 18.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Nick Kreeger |
| Maintainers | nkreeger |

## Links

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

## Recent versions

- 0.1.1 (latest) — 2018-06-01
- 0.1.0 — 2018-06-01
- 0.0.1 — 2018-04-29

## README

# node-simple-timer

A bare-bones timer for JavaScript - implemented in TypeScript.

## Installation:
```
$ npm install node-simple-timer
or
$ yarn add node-simple-timer
```

## Usage:

```js

import {Timer} from 'node-simple-timer';

const timer = new Timer();
timer.start();

// Do something

let ms = timer.milliseconds();

// Do something else:

ms = timer.milliseconds();

// One last thing

timer.end();
ms = timer.milliseconds();

console.log('Total seconds: ', timer.seconds();
```

####  Start a Timer at construction time.

```js
const timer = new Timer(true);  // Starts at construction time
```

#### Chaining methods:

```js
const timer = new Timer();

timer.start();
const ns = timer.end().nanoseconds();
```

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