|
@@ -37,15 +37,16 @@ namespace bbiwarg.Utility
|
|
}
|
|
}
|
|
|
|
|
|
public static void output(String name) {
|
|
public static void output(String 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]);
|
|
|
|
- }
|
|
|
|
|
|
+ Logger.log(String.Format("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]), Logger.LogSubject.Timer);
|
|
|
|
+ }
|
|
|
|
|
|
public static void outputAll() {
|
|
public static void outputAll() {
|
|
- Console.WriteLine("---TIMERS-START---");
|
|
|
|
|
|
+ Logger.log("---TIMERS-START---", Logger.LogSubject.Timer);
|
|
foreach (String name in stopwatches.Keys) {
|
|
foreach (String name in stopwatches.Keys) {
|
|
output(name);
|
|
output(name);
|
|
}
|
|
}
|
|
- Console.WriteLine("---TIMERS-END---");
|
|
|
|
|
|
+ Logger.log("---TIMERS-END---", Logger.LogSubject.Timer);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|