1

How to adjust time command to measure a program elapsed time

view story
linux-howto

http://unix.stackexchange.com – so Im trying to get the time that my program takes to finish (aka elapsed time) so I'm using the comman "time". What I get by doing this is 3 measurements: user, system and total. This is fine but I found that the user time that I'm interested in has only two decimal places and I would need more. Is there any way I can get more decimal places out of my time command? Example: time ./myCProgram Output: 0.17s user 1.21s system 130% cpu 0.187 total Wished output wanted: 0.17000s user 1.21s system 130% cpu 0.187 total (or more decimal places) (HowTos)