There is no built-in function or value to get response time.
But you can easily get the value yourself.
var http = require('http'); var start = new Date(); http.get({host: 'google.com', port: 80}, function(res) { console.log('Request took:', new Date() - start, 'ms'); });
EDIT
Since V8 also supports the new ES5 Date.now() , using this instead of new Date() would be a little cleaner.
Ivo Wetzel
source share