add timer to build

This commit is contained in:
Cheri Dawn 2024-07-20 16:18:23 +03:00
parent 44e2bea80f
commit 98b731a0d0

2
doit
View file

@ -8,6 +8,7 @@ SERVPATH="CUSTOMIZE THIS"
runbuild() { runbuild() {
echo -e '------------\nbuilding...' echo -e '------------\nbuilding...'
time=$EPOCHREALTIME
mkdir -p output mkdir -p output
for thing in $(find content/); do for thing in $(find content/); do
input=$thing input=$thing
@ -24,6 +25,7 @@ runbuild() {
for i in $OUTPATH/blog/20*.html; do for i in $OUTPATH/blog/20*.html; do
touch $i touch $i
done done
echo "done in $(bc <<< "scale = 2; ($EPOCHREALTIME - $time)/1")s"
} }
runsync() { runsync() {