promise-timer
Provides timing of promises.
- timeify(func, logFunc, scope) - Returns the function wrapped with timing
- timeifyAll(target, logFunc, options) - Patches all the target's methods with timing
These have similar definitions to bluebird's promisify:
- timeify resembles bluebird's promisify
- timeifyAll resembles bluebird's promisifyAll
Examples
npm install promise-timer
var Promise = ;Promise;var superagent = ;var agent = superagent Promise; var API = { return agent; } { return agent; } { return agent; }; Promise;
Or for single functions:
var getDriversAsyncTimed = Promise;