So, I know I can get current time in milliseconds using JavaScript. But, is it possible to get the current time in nanoseconds instead?
Yes! Try the excellent sazze's nano-time
let now = require('nano-time'); now(); // '1476742925219947761' (returns as string due to JS limitation)