Use process.hrtime() for Clock in node.js builds

As discussed in #2975.