Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Saad-Abbasi authored Sep 1, 2023
1 parent 4784f59 commit 46d1d55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4989,10 +4989,10 @@ You can check the runtime of a function in Node.js by using the `console.time()`
- After the loop is finished, we end the timer using `console.timeEnd("myFunction")`.
- Finally, we use `console.log` to print a message indicating the end of the function.

```javaScript
Function started
myFunction: 5431.709ms
Function ended

Function started
myFunction: 5431.709ms
Function ended

The time in milliseconds (ms) represents the runtime of the function `myFunction`. You can use this approach to measure the runtime of specific parts of your code to identify performance bottlenecks or optimize your code.
<div align="right">
Expand Down

0 comments on commit 46d1d55

Please sign in to comment.