5.5.2021 |

Simply measure duration of processes in JS

https://developer.mozilla.org/de/docs/Web/API/Console/time

function foo(a) {
    return 33*a;
}
    
console.time();
for (i = 0; i < 1000; i++) {
    // some stuff...
}
console.timeEnd();
Zur Übersicht

Mehr vom Devsquad...

Jan Sauer

undici — An HTTP/1.1 client, written from scratch for Node.js

Rahmi Tufanoglu

Typescript Utility Types