UNPKG

spur-common

Version:

Common node library that is implemented through the use of spur-ioc and bluebird promises.

10 lines (6 loc) 183 B
module.exports = (Timer, HTTPPlugin)-> class HTTPTiming extends HTTPPlugin start:()-> @timer = new Timer().start() end:()=> @request.duration = @timer.stop()