In testing the gnuCOBOL program yesterday I used time as I usually do…
time ./gnuPrime
This produced at the end…
real 0m0.193s
user 0m0.146s
sys 0m0.000s
However I found another formatted, way (the leading backslash is required, for some reason)…
\time -f "Program: %C\nTotal time: %E\nUser Mode (s) %U\nKernel Mode (s) %S\nCPU: %P" ./gnuPrime
This produced…
Program: ./gnuPrime
Total time: 0:00.20
User Mode (s) 0.13
Kernel Mode (s) 0.00
CPU: 71%