Skip to content

Commit

Permalink
tested and added timer function
Browse files Browse the repository at this point in the history
  • Loading branch information
Saad-Abbasi authored Sep 1, 2023
1 parent 46d1d55 commit 5603116
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4990,9 +4990,9 @@ You can check the runtime of a function in Node.js by using the `console.time()`
- Finally, we use `console.log` to print a message indicating the end of the function.


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 5603116

Please sign in to comment.