# @icon-magic/timing

> Icon magic timing package.

Latest version **2.0.1-beta.0** (published 2019-07-31) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install @icon-magic/timing
pnpm add @icon-magic/timing
yarn add @icon-magic/timing
bun add @icon-magic/timing
```

## 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 | 2.0.1-beta.0 |
| Published | 2019-07-31 |
| First published | 2019-07-31 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 151.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Omayeli Arenyeka |
| Maintainers | rchitloor, epicmiller |

## Links

- npm: https://www.npmjs.com/package/@icon-magic/timing
- npm.io page: https://npm.io/package/@icon-magic/timing

## Dependencies (2)

- [pretty-time](https://npm.io/package/pretty-time.md) ^1.1.0
- [@types/pretty-time](https://npm.io/package/@types/pretty-time.md) ^1.1.0

## Recent versions

- 2.0.1-beta.0 (latest) — 2019-07-31

## README

# @icon-magic/timing

This package handles timing using Node.js' [process.hrtime](https://nodejs.org/api/process.html#process_process_hrtime) function.

## Usage

```ts
// Import the timing module module
import { timer } from '@icon-magic/timing';

const TIMER = timer();

function doSomething() {
  TIMER.start();
  /* Something is getting done */
  LOGGER.info(`${TIMER.end()}`);
}
```

## Methods

The `timer` object has the following methods:

To start the timer:

- start()

To end the timer, returns elapsed time:

- end()

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