Time commands execution

Tag(s):

# Bash built-in time
TIMEFORMAT=%R; time sleep 2s
#2.003
 
TIMEFORMAT=%lR; time sleep 2s
#0m2.005s
 
TIMEFORMAT='%R %U %S %P'
#set ${output##*$nl}; real_time=$1 user_time=$2 system_time=$3 cpu_percent=$4
 
TIMEFORMAT="%lR %lU %lS"

http://mywiki.wooledge.org/BashFAQ/032