Is there a unix command to output time elapsed during a command?

Posted by Olivier Lacan on Super User See other posts from Super User or by Olivier Lacan
Published on 2014-06-07T16:01:51Z Indexed on 2014/06/07 21:28 UTC
Read the original article Hit count: 209

Filed under:
|
|

I love using time to find out how long a command took to execute but when dealing with commands that execute sub-commands internally (and provide output that allows you to tell when each of those sub-commands start running) it would be really great to be able to tell after what number of seconds (or milliseconds) a specific sub-command started running.

When I say sub-command, really the only way to distinguish these from the outside is anything printed to standard out.

Really this seems like it should be an option to time.

© Super User or respective owner

Related posts about command-line

Related posts about bash