Esempio n. 1
0
        public override int GetHashCode()
        {
            int result = 1;

            result = result * 13 + PayloadType.GetHashCode();
            result = result * 13 + NExecutionCycles.GetHashCode();
            result = result * 13 + LastExecutionTime.GetHashCode();
            result = result * 13 + AvgExecutionTime.GetHashCode();
            result = result * 13 + FastestExecutionTime.GetHashCode();
            result = result * 13 + LongestExecutionTime.GetHashCode();
            result = result * 13 + TotalExecutionTime.GetHashCode();

            return(result);
        }
Esempio n. 2
0
 public Dictionary <string, object> ToDictionary()
 {
     return(_lock.Read(() =>
     {
         return new Dictionary <string, object>
         {
             { "hits", HitCount },
             { "total", TotalExecutionTime.ToString("N") },
             { "average", Average.ToString("N") },
             { "exceptions", ExceptionPercentage.ToString("N") },
             { "min", MinTime.ToString("N") },
             { "max", MaxTime.ToString("N") }
         };
     }));
 }