# measure-function-time

> measure function time

Latest version **1.0.0** (published 2018-03-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install measure-function-time
pnpm add measure-function-time
yarn add measure-function-time
bun add measure-function-time
```

## 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 | 2018-03-08 |
| First published | 2018-03-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | zhaoyao91 |
| Maintainers | zhaoyao91 |
| Keywords | measure, function, time |

## Links

- npm: https://www.npmjs.com/package/measure-function-time
- npm.io page: https://npm.io/package/measure-function-time

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-03-08

## README

# Measure Function Time

Measure js function time.

## Usage

```
npm i measure-function-time
```

```ecmascript 6
const measure = require('measure-function-time')

const milliseconds = measure(() => {
  // some time consuming work
  // ...
})
```

## API

### measure

```
const measure = require('measure-function-time')

(fn, ...args) => milliseconds
```

### measureAsync

```
const measure = require('measure-function-time')
const measureAsync = measure.async

(fn, ...args) => promise => milliseconds
```

## License

MIT

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