Get metrics about requests
Expose request times to do with as you desire: statsd, log, etc.
Works with any express 2+, but express versions 4+ will not return a correct path if:
- routes are nested
- middleware responds to a request rather than a route handler
var timing = require'timing-middleware';var express = require'express';var app = express;appusetimingconsole.logverb path "took" duration "ms and returned " resstatusCode;;appget'/fairly_slow_route'setTimeoutressend'ok!\n';10;;