update snippets 0-All
This commit is contained in:
committed by
Agamemnon Zorbas
parent
39164e9cbf
commit
e7e687f60c
@ -9,6 +9,9 @@ const timeTaken = callback => {
|
||||
console.time('timeTaken'); const r = callback();
|
||||
console.timeEnd('timeTaken'); return r;
|
||||
};
|
||||
// timeTaken(() => Math.pow(2, 10)) -> 1024
|
||||
// (logged): timeTaken: 0.02099609375ms
|
||||
```
|
||||
|
||||
```js
|
||||
timeTaken(() => Math.pow(2, 10)) -> 1024
|
||||
(logged): timeTaken: 0.02099609375ms
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user