To get a microtime in Node.js, we use the performance-now
module.
For instance, we write
const loadTimeInMS = Date.now();
const performanceNow = require("performance-now");
console.log((loadTimeInMS + performanceNow()) * 1000);
to call performanceNow
to get the current timestamp in milliseconds.
We multiply it by 1000 to get the value in microseconds.