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 6f02eb9Copy full SHA for 6f02eb9
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,8 @@ 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
+echo "-----> Build duration: $(date -d@$DIFF -u +%H:%M:%S)"
0 commit comments