예제 #1
0
 public static void ResetStats()
 {
     Interlocked.Exchange(ref exceptions, 0);
     Interlocked.Exchange(ref eventsReceivedSent, 0);
     Interlocked.Exchange(ref eventReceiveTimeFast, 0);
     Interlocked.Exchange(ref eventReceiveTimeMiddle, 0);
     Interlocked.Exchange(ref eventReceiveTimeSlow, 0);
     Interlocked.Exchange(ref eventReceiveTimeMax, 0);
     Interlocked.Exchange(ref eventsReceivedFast, 0);
     Interlocked.Exchange(ref eventsReceivedMiddle, 0);
     Interlocked.Exchange(ref eventsReceivedSlow, 0);
     Interlocked.Exchange(ref operationsSent, 0);
     PeerListener.ResetStats();
 }