Explorar el Código

Fixed timer output.

Daniel Kauth hace 10 años
padre
commit
e484db21fa
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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() {