withSIX.Play.Core.Games.Legacy.ServerQuery.ServerQueryState.StartSW C# (CSharp) Method

StartSW() public method

public StartSW ( ) : void
return void
        public virtual void StartSW() {
            _stopWatch.Start();
        }

Usage Example

        async Task ProcessAllPackets()
        {
            _state.StartSW();
            _state.ReceivedPackets[0] = await GetInfo().ConfigureAwait(false);

            _state.StartSW();
            _state.ReceivedPackets[1] = await GetPlayers().ConfigureAwait(false);

            _state.StartSW();
            _state.ReceivedPackets[2] = await GetRules().ConfigureAwait(false);
        }
All Usage Examples Of withSIX.Play.Core.Games.Legacy.ServerQuery.ServerQueryState::StartSW