https://github.com/bukinoshita/log-ms
Elegant instance execution time in ms
https://github.com/bukinoshita/log-ms
date javascript node nodejs time timer
Last synced: 7 months ago
JSON representation
Elegant instance execution time in ms
- Host: GitHub
- URL: https://github.com/bukinoshita/log-ms
- Owner: bukinoshita
- License: mit
- Created: 2017-06-19T21:41:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-04T04:44:24.000Z (over 6 years ago)
- Last Synced: 2025-03-12T09:24:32.350Z (7 months ago)
- Topics: date, javascript, node, nodejs, time, timer
- Language: JavaScript
- Homepage:
- Size: 242 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# log-ms [](https://travis-ci.org/bukinoshita/log-ms)
> Elegant instance execution time in ms
## Install
```
$ npm install --save log-ms
```## Usage
```js
const logms = require('log-ms')const timer = logms()
timer.start()
setTimeout(() => console.log(`cool! ${timer.end()}`), 5000)
// => cool [5s]
```## Demo

## API
### logms()
### Instance
#### start()
Start the `logms`. Returns the instance.
#### end()
Stop the `logms`. Returns the instance.
## License
MIT © [Bu Kinoshita](https://bukinoshita.io)