public static void AddToMainProfile(int key) { if (CurrentProfiler != null) { CurrentProfiler.AddToFxProfile(key); } }
public static void EndTurn(TimeSpan moveTime) { if (IsEnabled) { CurrentProfiler.EndTurn(CurrentProfilerLogger, moveTime); } if (_currentPlayerColor == ChessColor.White) { _currentPlayerColor = ChessColor.Black; } else { _currentPlayerColor = ChessColor.White; } }