private void InitStatistics() { Log.Debug("Initializing table element statistics"); TimeSpanStatisticsItem TSI; TimeSpanStatistics = new TimeSpanStatisticsList(); TableElementCallStatistics = new Dictionary <TableElementTypeEnum, TimeSpanStatisticsItem>(); foreach (TableElementTypeEnum T in Enum.GetValues(typeof(TableElementTypeEnum))) { TSI = new TimeSpanStatisticsItem() { Name = "{0}".Build(T.ToString()), GroupName = "Pinball - Table element update calls" }; TableElementCallStatistics.Add(T, TSI); TimeSpanStatistics.Add(TSI); } Log.Debug("Table element statistics initialized"); }
/// <summary> /// Initializes a new instance of the <see cref="Pinball"/> class. /// </summary> public Pinball() { ThreadInfoList = new ThreadInfoList(); TimeSpanStatistics = new TimeSpanStatisticsList(); }
private void InitStatistics() { Log.Debug("Initializing table element statistics"); TimeSpanStatisticsItem TSI; TimeSpanStatistics = new TimeSpanStatisticsList(); TableElementCallStatistics = new Dictionary<TableElementTypeEnum, TimeSpanStatisticsItem>(); foreach (TableElementTypeEnum T in Enum.GetValues(typeof(TableElementTypeEnum))) { TSI = new TimeSpanStatisticsItem() { Name = "{0}".Build(T.ToString()), GroupName = "Pinball - Table element update calls" }; TableElementCallStatistics.Add(T, TSI); TimeSpanStatistics.Add(TSI); } Log.Debug("Table element statistics initialized"); }