From c3dbdbdf97d8482bdca7e1eea64749043020ed6e Mon Sep 17 00:00:00 2001 From: sayalilunkad Date: Tue, 3 Feb 2015 02:30:26 +0530 Subject: [PATCH] Displays time taken to run osbash This displays the total time required to run osbash in seconds. Change-Id: I372e6551029fdc879f308659ca28bb114b07e3db --- labs/osbash.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/labs/osbash.sh b/labs/osbash.sh index 4b19a7ac..bbc4ad9b 100755 --- a/labs/osbash.sh +++ b/labs/osbash.sh @@ -162,6 +162,7 @@ if [ -z "${OSBASH:-}" -a -z "${WBATCH:-}" ]; then exit fi +STARTTIME=$(date +%s) echo >&2 "$(date) osbash starting" clean_dir "$LOG_DIR" @@ -215,4 +216,6 @@ for node in $nodes; do vm_build_node "$node" done #------------------------------------------------------------------------------- +ENDTIME=$(date +%s) echo >&2 "$(date) osbash finished successfully" +echo "osbash completed in $(($ENDTIME - $STARTTIME)) seconds."