If you measure times in Ubuntu 18.04, the result apears in a single line:
$ time sleep 1
sleep 1 0.00s user 0.00s system 0% cpu 1.003 total
This doesn’t align with the POSIX standard, as described in time’s man page:
-p, --portability
Use the following format string, for conformance with POSIX standard 1003.2:
real %e
user %U
sys %S
Now my question is:
Why does Ubuntu use its own format for displaying resource usage?
Also, how do I change the behavior? Using the -p option from the manual I cited above, I only get the following error:
$ time -p sleep 1
zsh: command not found: -p
-p sleep 1 0.00s user 0.00s system 73% cpu 0.002 total