I'm trying to measure how much time it takes for a promise to resolve. However, I'm getting a "perfomance' is not defined" error even though I have node 15+. Ive also tried putting in
const {performance} = require('perf_hooks');
in my code but no luck.
I'm doing this in React, but I doubt that is making a difference.