[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [6499] Improve timestamping
From: |
Greg Chicares |
Subject: |
[lmi-commits] [6499] Improve timestamping |
Date: |
Fri, 05 Feb 2016 14:55:54 +0000 |
Revision: 6499
http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6499
Author: chicares
Date: 2016-02-05 14:55:52 +0000 (Fri, 05 Feb 2016)
Log Message:
-----------
Improve timestamping
Modified Paths:
--------------
lmi/trunk/install_msw.sh
Modified: lmi/trunk/install_msw.sh
===================================================================
--- lmi/trunk/install_msw.sh 2016-02-02 13:35:16 UTC (rev 6498)
+++ lmi/trunk/install_msw.sh 2016-02-05 14:55:52 UTC (rev 6499)
@@ -33,9 +33,10 @@
#
# rm --force --recursive /opt/lmi
-date -u +'%Y%m%dT%H%MZ'
+stamp0=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
+echo "Started: $stamp0"
-# '--jobs=2': big benefit for multicore, no penalty for single core.
+# '--jobs=4': big benefit for multicore, no penalty for single core.
# '--output-sync=recurse': facilitates log comparison.
export coefficiency='--jobs=4 --output-sync=recurse'
@@ -187,7 +188,12 @@
</configurable_settings>
EOF
-date -u +'%Y%m%dT%H%MZ'
+stamp1=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
+echo "Finished: $stamp1"
+seconds=$(expr $(date '+%s' -d $stamp1) - $(date '+%s' -d $stamp0))
+elapsed=$(date -u -d @"$seconds" +'%H:%M:%S')
+echo "Elapsed: $elapsed"
+
echo Finished building lmi. >/dev/tty
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [6499] Improve timestamping,
Greg Chicares <=