I use the /usr/bin/time program to measure the time for a command. with the --format parameter i can format the output. e.g.
/usr/bin/time -f "%e" ls
is there a way to output a bigger accuracy of the elapsed seconds? or just output milliseconds, not seconds?
In the manual of /usr/bin/time it only says something about seconds, but maybe there is a way and someone can help me... thanks!
EDIT: I know about the bash command "time" which uses the format of the environment variable "TIMEFORMAT". sorry, but i don't wanna change that env-var... seems to risky to me, solution should be something that doesn't change the running system at all :)
TIMEFORMAT
variable is only used for controlling the output of the builtintime
command. There's no risk associated with changing it. – Aquifer