Update snippet descriptions
This commit is contained in:
@ -3,9 +3,9 @@ title: timeTaken
|
||||
tags: function,beginner
|
||||
---
|
||||
|
||||
Measures the time taken by a function to execute.
|
||||
Measures the time it takes for a function to execute.
|
||||
|
||||
- Use `console.time()` and `console.timeEnd()` to measure the difference between the start and end times to determine how long the callback took to execute.
|
||||
- Use `Console.time()` and `Console.timeEnd()` to measure the difference between the start and end times to determine how long the callback took to execute.
|
||||
|
||||
```js
|
||||
const timeTaken = callback => {
|
||||
|
||||
Reference in New Issue
Block a user