You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4990,9 +4990,9 @@ You can check the runtime of a function in Node.js by using the `console.time()`
4990
4990
- Finally, we use `console.log` to print a message indicating the end of the function.
4991
4991
4992
4992
4993
-
Function started
4994
-
myFunction: 5431.709ms
4995
-
Function ended
4993
+
- Function started
4994
+
- myFunction: 5431.709ms
4995
+
- Function ended
4996
4996
4997
4997
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.
0 commit comments