Commit a13768f1 authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 5b8225c6
...@@ -90,7 +90,7 @@ async function run() { ...@@ -90,7 +90,7 @@ async function run() {
addShortLong(adder[i].total, countOfShort, countOfLong) addShortLong(adder[i].total, countOfShort, countOfLong)
} }
var startTime = performance.now()
for (let i = 0; i < adder.length; i++) { for (let i = 0; i < adder.length; i++) {
for (let z = i + 1; z < adder.length; z++) { for (let z = i + 1; z < adder.length; z++) {
let types = adder[z].type let types = adder[z].type
...@@ -118,8 +118,7 @@ async function run() { ...@@ -118,8 +118,7 @@ async function run() {
} }
} }
var endTime = performance.now()
console.log(`Call to doSomething took ${endTime - startTime} milliseconds`)
for (let i = 0; i < adder.length; i++) { for (let i = 0; i < adder.length; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment