I would like to use performance.now() as seen in the top answer to this SO Post.
How to measure time taken by a function to execute
However is it was not available in my Replit or my local Node server.
Do I have to install it?
I searched packages on Repl.it and this came up
In the repl.it I added ...
const performance = require('performance'); const t0 = performance.now();
and it auto installed performance but I am still getting an error ... now it is saying that now() is not a function.