print build time

This commit is contained in:
SoftFever
2026-03-19 23:17:03 +08:00
parent acbe5c708e
commit a9c5748d30
5 changed files with 50 additions and 17 deletions

View File

@@ -2,6 +2,7 @@
set -e
set -o pipefail
SECONDS=0
while getopts ":dpa:snt:xbc:i:1Tuh" opt; do
case "${opt}" in
@@ -342,3 +343,6 @@ fi
if [ "1." == "$PACK_DEPS". ]; then
pack_deps
fi
elapsed=$SECONDS
printf "\nBuild completed in %dh %dm %ds\n" $((elapsed/3600)) $((elapsed%3600/60)) $((elapsed%60))