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
The function works fine on the browser. The instance returns the time run.
However, nodeJS uses a completely different structure for it's timers.
It may not be necessary in NodeJS. I genuinely think it helps otherwise, I use it to time my unit tests.
The value returned by setInterval() is the total runtime of the timer.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi @nandanvasudevan, i can see that your request doesn't really involve any algorithm, or issues in the repository.
Still You can use console.time() to start a timer and use console.timeEnd() to stop it, this is available on both NodeJs and in the standard JavaScript and it can be used to calculate the run time.
The function works fine on the browser. The instance returns the time run.
However, nodeJS uses a completely different structure for it's timers.
It may not be necessary in NodeJS. I genuinely think it helps otherwise, I use it to time my unit tests.
The value returned by setInterval() is the total runtime of the timer.
The text was updated successfully, but these errors were encountered: