Created
March 2, 2015 08:03
-
-
Save mipearson/8a27fe64a06014b908fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
START=`date +%s` | |
function status { | |
set +x | |
ELAPSED=`expr $(date +%s) - $START` && true | |
echo "--- $1 T+$ELAPSED" | |
set -x | |
} | |
set -e | |
set -x | |
status "Did some things" | |
sleep 10 | |
status "Did some more things" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment