measure time taken for a command in terminal

1 min read  •  1 May 2023
Views:
time-taken-for-command-in-terminal

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