0.0.3 • Published 10 years ago

time-promise v0.0.3

Weekly downloads
3
License
-
Repository
github
Last release
10 years ago

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

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

11 years ago

0.0.0

11 years ago