We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c985dde commit 9406823Copy full SHA for 9406823
1 file changed
bin/compile
@@ -31,6 +31,8 @@ if [ -n "${BUILDPACK_VERBOSE+1}" ]; then
31
set -x
32
fi
33
34
+# Save the start time to calculate execution time
35
+START=$(date +%s)
36
37
# Get the path to dir one above this file.
38
BUILDPACK_DIR=$(cd -P -- "$(dirname -- "$0")" && cd .. && pwd -P)
@@ -237,3 +239,9 @@ if [ -n "${BUILDPACK_CLEAR_CACHE+1}" ]; then
237
239
echo "-----> Clearing cache dir."
238
240
rm -rf $METEOR_DIR
241
242
+
243
+# Calculate execution time
244
+END=$(date +%s)
245
+DIFF=$(($END - $START))
246
+# This date call doesn't work on macOS. Using BSD, it would be $(date -r $DIFF -u +%H:%M:%S)
247
+echo "-----> Build duration: $(date -d@$DIFF -u +%H:%M:%S)"
0 commit comments