Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
That's a question that's easily answered by looking at the manual of your shell (at least if your shell is zsh, ksh93 or bash). – Stephane ChazelasOct 30 '12 at 17:45
If you just want to alter the output for a single invocation: printf "%.2fs\n" $(TIMEFORMAT=%R bash -c 'time ...' 2>&1) – glenn jackmanOct 31 '12 at 0:57