time-promise

0.0.3 • Public • Published

time-promise

Timing sync or promise-returning functions.

NPM

Build status dependencies devdependencies endorse

Install

npm install time-promise --save

Example

var time = require('time-promise');
 
var value = time(syncFunction)();
// prints timing, returns value from syncFunction
 
time(promiseReturningFunction)().then(...)
// prints timing after the function executes
// returns the original promise

Small print

Author: Gleb Bahmutov © 2013

License: MIT - do anything with the code, but don't blame me if it does not work.

Support: if you find any problems with this module, email / tweet / open issue on Github

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    1
  • 0.0.2
    1
  • 0.0.1
    1
  • 0.0.0
    1

Package Sidebar

Install

npm i time-promise

Weekly Downloads

4

Version

0.0.3

License

MIT

Last publish

Collaborators

  • bahmutov