コード例 #1
0
        private void OnTestCallback(LoadTestPayload payload)
        {
            _receivedCount++;

            if (SendMessagesCount != _receivedCount)
            {
                return;
            }

            Debug.LogFormat("Multithreading Load Test: sent {0} messages, received {1} messages, took {2} seconds",
                            SendMessagesCount, _receivedCount, Math.Round(_loopTime.TotalSeconds, 3));

            Assert.AreEqual(SendMessagesCount, _receivedCount);

            if (_receivedCount != SendMessageChunksCount * SendMessageChunksCount)
            {
                return;
            }
            Debug.LogFormat("Multithreading Load Test: average time {0}",
                            Math.Round(_totalTime / SendMessageChunksCount, 3));
        }
コード例 #2
0
 private void OnTestCallback(LoadTestPayload payload)
 {
     _receivedCount++;
 }