const { performance } = require('perf_hooks'); const start = performance.now(); // Capture the start time console.log(`start time : ${start} `); // Your code block here const end = performance.now(); // Capture the end time console.log(`end time : ${end} `); console.log(`Elapsed time: ${end - start} milliseconds`);