From: Matthias Krüger Date: Mon, 17 Jun 2013 22:16:54 +0000 (+0200) Subject: xonotic-map-compiler : add function which simply tracks the seconds map build has... X-Git-Tag: xonotic-v0.8.0~113 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=85c67feacc3529b00a244e7dfce6525e609767c3;p=xonotic%2Fxonotic.git xonotic-map-compiler : add function which simply tracks the seconds map build has taken. --- 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