Node.js has a high resolution timer available on the process object that returns a BigInt in nanoseconds:
BigInt
> process.hrtime.bigint() 91064631083291n
source