/// <summary> /// Initializes a new instance of the <see cref="FrequencyTracker"/> class. /// </summary> /// <param name="statisticName">Name of the statistic.</param> public FrequencyTracker(string statisticName) { lastUpdate = DateTime.Now; if (!string.IsNullOrEmpty(statisticName)) { statistic = Statistic.Get(statisticName); } }
public StatisticGraph(Control parent, SpriteFont font, string statisticName, TimeSpan accessInterval) : this(parent, font, Statistic.Get(statisticName), accessInterval) { }
/// <summary> /// Adds the statistic to the log. /// </summary> /// <param name="statisticName">Name of the statistic.</param> /// <param name="accessInterval">The time between readings of the statistic.</param> public void AddStatistic(string statisticName, TimeSpan accessInterval) { AddStatistic(Statistic.Get(statisticName), accessInterval); }