Browse Source

Fixed timer output.

Daniel Kauth 11 years ago
parent
commit
e484db21fa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bbiwarg/Utility/Timer.cs

+ 1 - 1
bbiwarg/Utility/Timer.cs

@@ -37,7 +37,7 @@ namespace bbiwarg.Utility
         }
 
         public static void output(String name) {
-            Console.WriteLine("name:" + name + "\t" + "avg:" + Math.Round(sumTimes[name] / Math.Max(numTimes[name], 1), 2) + "\t" + "min:" + minTimes[name] + "\t" + "max:" + maxTimes[name]);
+            Console.WriteLine("name:{0}\tavg:{1:00.00}\tmin:{2:00.00}\tmax:{3:00.00}", name, sumTimes[name] / Math.Max(numTimes[name], 1), minTimes[name], maxTimes[name]);
        }
 
         public static void outputAll() {