nodejs get response time
snippet in javascript

nodejs get response time

user1240

request.get({
  url : 'http://example.com',
  time : true
},function(err, response){
  console.log('Request time in ms', response.elapsedTime);
});