From 98b731a0d0df3799a0aa6fc08e0d9611fcc57aeb Mon Sep 17 00:00:00 2001 From: Cheri Dawn Date: Sat, 20 Jul 2024 16:18:23 +0300 Subject: [PATCH] add timer to build --- doit | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doit b/doit index 10a7003..d06ccce 100755 --- a/doit +++ b/doit @@ -8,6 +8,7 @@ SERVPATH="CUSTOMIZE THIS" runbuild() { echo -e '------------\nbuilding...' + time=$EPOCHREALTIME mkdir -p output for thing in $(find content/); do input=$thing @@ -24,6 +25,7 @@ runbuild() { for i in $OUTPATH/blog/20*.html; do touch $i done + echo "done in $(bc <<< "scale = 2; ($EPOCHREALTIME - $time)/1")s" } runsync() {