https://github.com/node-modules/performance-ms
performance timer in ms
https://github.com/node-modules/performance-ms
Last synced: 11 months ago
JSON representation
performance timer in ms
- Host: GitHub
- URL: https://github.com/node-modules/performance-ms
- Owner: node-modules
- License: mit
- Created: 2023-08-04T06:54:56.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-16T06:27:46.000Z (almost 2 years ago)
- Last Synced: 2025-06-10T18:33:11.233Z (11 months ago)
- Language: TypeScript
- Homepage:
- Size: 8.79 KB
- Stars: 4
- Watchers: 16
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# performance-ms
[![NPM version][npm-image]][npm-url]
[](https://github.com/node-modules/performance-ms/actions/workflows/nodejs.yml)
[![Test coverage][codecov-image]][codecov-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
[![npm download][download-image]][download-url]
[npm-image]: https://img.shields.io/npm/v/performance-ms.svg?style=flat-square
[npm-url]: https://npmjs.com/package/performance-ms
[codecov-image]: https://codecov.io/github/node-modules/performance-ms/coverage.svg?branch=master
[codecov-url]: https://codecov.io/github/node-modules/performance-ms?branch=master
[snyk-image]: https://snyk.io/test/npm/performance-ms/badge.svg?style=flat-square
[snyk-url]: https://snyk.io/test/npm/performance-ms
[download-image]: https://img.shields.io/npm/dm/performance-ms.svg?style=flat-square
[download-url]: https://npmjs.com/package/performance-ms
performance timer in ms
## Usage
```ts
import { now, diff } from 'performance-ms';
const startTime = now();
// run your code
const rt = diff(startTime);
console.log('rt %d', rt);
// stdout: rt 1.228
```
## License
[MIT](LICENSE)
## Contributors
|[
fengmk2](https://github.com/fengmk2)
|[
semantic-release-bot](https://github.com/semantic-release-bot)
|
| :---: | :---: |
This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Fri Aug 04 2023 15:21:17 GMT+0800`.