const start = Date.now(); await functionToBeMeasured(); const end = Date.now(); console.log(`Execution time: ${end - start} ms`);