Beispiel #1
0
        public override long Sum(Counts_Type type)
        {
            long[] all   = _counts[( int )type];
            long   total = 0;

            foreach (long one in all)
            {
                total += one;
            }
            return(total);
        }
Beispiel #2
0
 public override void IncAndGetCount(Counts_Type type)
 {
     outerInstance.counts.IncAndGet(type, ThreadIndex);
 }
Beispiel #3
0
 public override void IncAndGet(Counts_Type type, int threadIndex)
 {
     Counts(type)[threadIndex]++;
 }
Beispiel #4
0
 private long[] Counts(Counts_Type type)
 {
     return(_counts[( int )type]);
 }