Unix Command to timestamp the output of a file, but with the relative-to-when-it-started time?
Here's one way:
#!/bin/bash
SECONDS=0 # it will already be initialized to zero at the start of the script
while read -r line
do
echo "$SECONDS: $line"
done < file # or < <(command)
SECONDS
is a variable that automatically increments every second.