Skip to content

Commit 5603116

Browse files
authored
tested and added timer function
1 parent 46d1d55 commit 5603116

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4990,9 +4990,9 @@ You can check the runtime of a function in Node.js by using the `console.time()`
49904990
- Finally, we use `console.log` to print a message indicating the end of the function.
49914991

49924992

4993-
Function started
4994-
myFunction: 5431.709ms
4995-
Function ended
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)