This commit is contained in:
Ilya Kantor 2019-03-30 14:32:38 +03:00
parent 65671ab7ba
commit 9c3ac133e3
23 changed files with 330 additions and 273 deletions

View file

@ -5,7 +5,7 @@ let i = 0;
let start = Date.now();
let timer = setInterval(count, 0);
let timer = setInterval(count);
function count() {
@ -20,4 +20,3 @@ function count() {
}
```

View file

@ -18,7 +18,7 @@ function count() {
if (i == 1000000000) {
alert("Done in " + (Date.now() - start) + 'ms');
} else {
setTimeout(count, 0);
setTimeout(count);
}
// a piece of heavy job