Skip to content

Commit

Permalink
Merge branch 'w/2.11/improvement/display-second-decimal' into tmp/oct…
Browse files Browse the repository at this point in the history
…opus/q/2.11
  • Loading branch information
bert-e committed Nov 30, 2021
2 parents 10cf204 + 726ee1f commit 02bc25e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/common.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,16 @@ run_quiet() {

echo -n "> ${name}..."
local start
start=$(date +%s)
start=$(date +%s%N | cut -c-11)
set +e
"$@" > >(tee -ia "${LOGFILE}" > "${TMPFILES}/out") 2>&1
local RC=$?
set -e
local end
end=$(date +%s)
end=$(date +%s%N | cut -c-11)

local duration=$(( end - start ))
local duration
duration=$(printf "%.1f" "$(( end - start ))e-1")

if [ $RC -eq 0 ]; then
echo " done [${duration}s]"
Expand Down

0 comments on commit 02bc25e

Please sign in to comment.