measure time taken for a command in terminal
1 min read • 1 May 2023Views:
![time-taken-for-command-in-terminal](https://user-images.githubusercontent.com/43666833/235449779-3d4533df-0b9d-4ac0-8486-4324e5cd1ed3.gif)
You can measure how long did a command took to complete within your terminal. All you need to do is just add time before your command.
For example
If I want to know how long did node took to execute my index.js file (above example), I can run
time node index.js