From 46d1d551bcd00924f5732130516aa5ead3d195d2 Mon Sep 17 00:00:00 2001 From: Saad Abbasi <31920238+Saad-Abbasi@users.noreply.github.com> Date: Fri, 1 Sep 2023 13:42:33 -0700 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d58dd12..fb2e613 100644 --- a/README.md +++ b/README.md @@ -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.