Outputting script execution time
This commit is contained in:
parent
24b3371b5a
commit
13a420a5b1
@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
begin=$(date +"%s")
|
||||
# saner programming env: these switches turn some bugs into errors
|
||||
set -o errexit -o pipefail -o noclobber -o nounset
|
||||
source="-"
|
||||
@ -204,3 +205,7 @@ fi
|
||||
ConvertFiles
|
||||
CopyFiles
|
||||
CleanUp
|
||||
|
||||
termin=$(date +"%s")
|
||||
difftimelps=$(($termin-$begin))
|
||||
VerboseOutput 1 "$(($difftimelps / 60)) minutes and $(($difftimelps % 60)) seconds elapsed for Script Execution."
|
Loading…
Reference in New Issue
Block a user