PA MMJ Portal
let count = 10000;
console.time('Total time')
for (let i = 0; i < count; ++i) {
setTimeout(() => {
if (--count === 0) {
console.timeEnd('Total time')
}
}, i / 10); // Set 10 timeouts for each millisecond
}
Busy Booby