diff --git a/setupFiles/compile.sh b/setupFiles/compile.sh index ab2b845..76345eb 100644 --- a/setupFiles/compile.sh +++ b/setupFiles/compile.sh @@ -2,7 +2,10 @@ # Adapted from github.com/gkilleen33/overleaf-offline under the MIT license -echo =================================== +export TIMEFORMAT="Done Compiling in %Rs, used %P%% CPU" + +time { +echo ==== Compiling ==================== mkdir -p pdf # if test -f "pdf/output.aux"; then @@ -30,5 +33,4 @@ latexmk -pdf -jobname=pdf/output $1 -f -quiet cp pdf/output.pdf . echo =================================== -echo "Done compiling." -echo +} \ No newline at end of file