Пример #1
0
 public Pinger(RingBuffer <PerfEvent> buffer, long maxEvents, long pauseTimeNs)
 {
     _buffer         = buffer;
     _maxEvents      = maxEvents;
     _pauseTimeNs    = pauseTimeNs;
     _pauseTimeTicks = LatencyTestSession.ConvertNanoToStopwatchTicks(pauseTimeNs);
 }
 public QueuePinger(ArrayConcurrentQueue <long> pingQueue, ArrayConcurrentQueue <long> pongQueue, long maxEvents, long pauseTimeInNano)
 {
     _pingQueue       = pingQueue;
     _pongQueue       = pongQueue;
     _maxEvents       = maxEvents;
     _pauseTimeInNano = pauseTimeInNano;
     _pauseDurationInStopwatchTicks = LatencyTestSession.ConvertNanoToStopwatchTicks(pauseTimeInNano);
 }
Пример #3
0
            public Pinger(RingBuffer <ValueEvent> buffer, long maxEvents, int pauseDurationInNanos)
            {
                _buffer    = buffer;
                _maxEvents = maxEvents;

                _pauseDurationInNanos          = pauseDurationInNanos;
                _pauseDurationInStopwatchTicks = LatencyTestSession.ConvertNanoToStopwatchTicks(pauseDurationInNanos);
            }
 public QueuePinger(Channel <PerfEvent> pingChannel, Channel <PerfEvent> pongChannel, long maxEvents, long pauseTimeInNano)
 {
     _pingChannel     = pingChannel;
     _pongChannel     = pongChannel;
     _maxEvents       = maxEvents;
     _pauseTimeInNano = pauseTimeInNano;
     _pauseDurationInStopwatchTicks = LatencyTestSession.ConvertNanoToStopwatchTicks(pauseTimeInNano);
 }