time-promise
Timing sync or promise-returning functions
Last updated 7 years ago by bahmutov .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install time-promise 
SYNC missed versions from official npm registry.

time-promise

Timing sync or promise-returning functions.

NPM

Build status dependencies devdependencies endorse

Install

npm install time-promise --save

Example

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

Current Tags

  • 0.0.3                                ...           latest (7 years ago)

4 Versions

  • 0.0.3                                ...           7 years ago
  • 0.0.2                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
  • 0.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 5
Dependencies (2)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |