From 85c67feacc3529b00a244e7dfce6525e609767c3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Kr=C3=BCger?= Date: Tue, 18 Jun 2013 00:16:54 +0200 Subject: [PATCH] xonotic-map-compiler : add function which simply tracks the seconds map build has taken. --- misc/tools/xonotic-map-compiler-optionsfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/misc/tools/xonotic-map-compiler-optionsfile b/misc/tools/xonotic-map-compiler-optionsfile index 1666c5bf..15113e29 100755 --- a/misc/tools/xonotic-map-compiler-optionsfile +++ b/misc/tools/xonotic-map-compiler-optionsfile @@ -9,4 +9,13 @@ if [ -n "$sz" ]; then else minimap_override= fi + +mkdir -p ~/.xonotic-map-compiler-autobuild/ # to store map compile times + +tstart=`date +%s` + + misc/tools/xonotic-map-compiler "$M" `grep ^- "$M.map.options" | cut -d '#' -f 1` $minimap_override "$@" + +tend=`date +%s` +let tdelta=$tend-$tstart -- 2.39.2