measure time taken for a command in terminal1 min read • 1 May 2023
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.
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