I started a hash check of a large file and don't want to restart it using
time. How can I get the wall clock time without using time at the beginning or using
date right before I invoke a command?
For a running process you can do this:
As a general feature you can modify your shell prompt. This is my bash prompt definition:
The relevant part for you is the
This does not solve all problems, though. The new prompt will show when the process has ended but the former prompt may have been quite old when the command to be measured was started. So either you remember to renew the prompt before starting long running commands or you have to remember the current time when you want to know how long the current process will have taken.
For a complete solution you need an audit feature (which logs the start and end time of processes). But that may cause a huge amount of data if it cannot be restricted to the shell.