Added runtime

This commit is contained in:
Michael Stanclift 2020-05-25 21:28:30 -05:00
parent efd06e7b7b
commit 3fe4af6bab

View File

@ -361,7 +361,9 @@ function exit_nochange {
## Changes Made ## Changes Made
function exit_withchange { function exit_withchange {
echo -e "${INFO} ${PROGRAM} ${TASKTYPE} Completed" SCRIPT_END='date +%s'
SCRIPT_RUNTIME=$((SCRIPT_END-SCRIPT_START))
echo -e "${INFO} ${PROGRAM} ${TASKTYPE} Completed in ${SCRIPT_RUNTIME}"
exit 0 exit 0
} }
@ -405,6 +407,7 @@ function md5_compare {
} }
# SCRIPT EXECUTION ########################### # SCRIPT EXECUTION ###########################
SCRIPT_START='date +%s'
MESSAGE="Evaluating Script Arguments" MESSAGE="Evaluating Script Arguments"
echo -en "${STAT} ${MESSAGE}" echo -en "${STAT} ${MESSAGE}"