hrtime to milliseconds

JavaScript
var hrTime = process.hrtime()
console.log(hrTime[0] * 1000000 + hrTime[1] / 1000)
Source

Also in JavaScript: