Node.js app to time calls to REST API