3 ms·
If I read ts source right, it merely prepends the current time to every line it echoes from stdin to stdout. now is different. It re-prints current time once a
by latitude 14y ago
If I read ts source right, it merely prepends the current time to every line it echoes from stdin to stdout.
now is different. It re-prints current time once a second while waiting for the input. You basically get the running clock at the last line of output.
- dfc 14y agoOops. You are correct. Thanks for pointing that out. I have to say that now that I understand what it does I have no idea about the use case.