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); }
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") } }; })); }