// Start your timer
let time1 = performance.now();
// Perform your Loop
for (let i = 0; i <= 10; i++) {
console.log(i);
}
// End your timer
let time2 = performance.now()
// Log the time it took to complete
console.log(`Your loop took ${time1 - time2} milleseconds`);
var start = new Date();
//do some think that takes a while here
var runTime = new Date() - start;
console.log("Script took:"+runTime+" Milliseconds to run");