Run a command, prefixing each line with the current duration.
$ linetimer bash -c "echo Beginning; sleep 1
echo Middle; sleep 2
echo End; sleep 3"
[0:00] Beginning
[0:01] Middle
[0:03] End
[0:06]
If you have Go you can install from source:
go get github.com/nathforge/linetimer/cmd/linetimer
Otherwise, download a file from the
releases page.
Extract with tar xzf FILENAME.tar.gz and move linetimer to a directory
included in your system's PATH.
Apache 2.0. See LICENSE.