Exemplo n.º 1
0
        public StatisticsService()
        {
            this.statisticsIntervalInSeconds = 1;

            systemStatistics = new Statistics();
            systemStatistics.SystemStartTime = DateTime.Now;

            lastMeasureTime = DateTime.Now;
        }
 public StatisticsEventArgs(Statistics s)
 {
     Statistics = s;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Sends statistics information about the home automation system.
 /// </summary>
 /// <param name="systemStatistics"></param>
 internal void StatisticsReceived(Statistics systemStatistics)
 {
     OnStatisticsReceived?.Invoke(this, new StatisticsEventArgs(systemStatistics));
 }