]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
xonotic-map-compiler : add function which simply tracks the seconds map build has...
authorMatthias Krüger <matthias.krueger@famsik.de>
Mon, 17 Jun 2013 22:16:54 +0000 (00:16 +0200)
committerMatthias Krüger <matthias.krueger@famsik.de>
Mon, 17 Jun 2013 22:16:54 +0000 (00:16 +0200)
misc/tools/xonotic-map-compiler-optionsfile

index 1666c5bfd2bcad01d075363d3a5d6459e7a0744e..15113e2935569c1418a8a7a73850d4fbbc359587 100755 (executable)
@@ -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