コード例 #1
0
 /// <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);
     }
 }
コード例 #2
0
ファイル: StatisticGraph.cs プロジェクト: sachgits/Myre
 public StatisticGraph(Control parent, SpriteFont font, string statisticName, TimeSpan accessInterval)
     : this(parent, font, Statistic.Get(statisticName), accessInterval)
 {
 }
コード例 #3
0
 /// <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);
 }