add elapsed time to script
This commit is contained in:
parent
197d53d32e
commit
523c405f06
11
stack.sh
11
stack.sh
@ -13,6 +13,9 @@
|
|||||||
# Sanity Check
|
# Sanity Check
|
||||||
# ============
|
# ============
|
||||||
|
|
||||||
|
# Start our timer
|
||||||
|
START_TIME=`python -c "import time; print time.time()"`
|
||||||
|
|
||||||
# Warn users who aren't on natty, but allow them to override check and attempt
|
# Warn users who aren't on natty, but allow them to override check and attempt
|
||||||
# installation with ``FORCE=yes ./stack``
|
# installation with ``FORCE=yes ./stack``
|
||||||
if ! grep -q natty /etc/lsb-release; then
|
if ! grep -q natty /etc/lsb-release; then
|
||||||
@ -514,3 +517,11 @@ if [[ "$ENABLED_SERVICES" =~ "key" ]]; then
|
|||||||
echo "keystone is serving at http://$HOST_IP:5000/v2.0/"
|
echo "keystone is serving at http://$HOST_IP:5000/v2.0/"
|
||||||
echo "examples on using novaclient command line is in exercise.sh"
|
echo "examples on using novaclient command line is in exercise.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Summary
|
||||||
|
# =======
|
||||||
|
|
||||||
|
# End our timer and give a timing summary
|
||||||
|
END_TIME=`python -c "import time; print time.time()"`
|
||||||
|
ELAPSED=`python -c "print $END_TIME - $START_TIME"`
|
||||||
|
echo "stack.sh completed in $ELAPSED seconds."
|
||||||
|
Loading…
Reference in New Issue
Block a user