I am looking for a command to track the time.
I imagine the following workflow:
- Run the command
- ...do something else...
- Return to the terminal window and stop the command
- As an output you receive the time elapsed between 3 and 1
I am looking for a command to track the time.
I imagine the following workflow:
This answer suggests to use
and use Ctrl-D to see the time.
You can also use
and use Enter key
Also check this answer on the same question
How about:
In action:
Simple way of doing it is to take start time, and once you stop the script - take stop time. Finally, print the time difference. This can easily be done with Python:
Or long version for readability:
Stopping is done with Ctrl+C