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="-"
|
||||
@ -203,4 +204,8 @@ if [[ ! -f /tmp/music-sync-filelist ]]; then
|
||||
fi
|
||||
ConvertFiles
|
||||
CopyFiles
|
||||
CleanUp
|
||||
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