Skip to content

Commit 46d1d55

Browse files
authored
Update README.md
1 parent 4784f59 commit 46d1d55

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4989,10 +4989,10 @@ You can check the runtime of a function in Node.js by using the `console.time()`
49894989
- After the loop is finished, we end the timer using `console.timeEnd("myFunction")`.
49904990
- Finally, we use `console.log` to print a message indicating the end of the function.
49914991

4992-
```javaScript
4993-
Function started
4994-
myFunction: 5431.709ms
4995-
Function ended
4992+
4993+
Function started
4994+
myFunction: 5431.709ms
4995+
Function ended
49964996

49974997
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.
49984998
<div align="right">

0 commit comments

Comments
 (0)