public Sumup(string baseName, List <string> choosen) { InitializeComponent(); this.baseName = baseName; List <string> header = FileAdapter.GetHeders("data\\" + baseName + ".boi"); for (int i = 0; i < choosen.Count; i++) { sum += header[i] + " : " + choosen[i] + "\n"; } Choosen.Text = sum; Stopwatch stopwatchVote = new Stopwatch(); stopwatchVote.Start(); SetVoteResult(baseName, choosen); stopwatchVote.Stop(); Stopwatch stopwatchList = new Stopwatch(); stopwatchList.Start(); SetListResult(baseName, choosen); stopwatchList.Stop(); long timeVote = stopwatchVote.ElapsedTicks; long timeList = stopwatchList.ElapsedTicks; string message = "Czas działania vote : " + timeVote + "\nCzas działania List: " + timeList + "\nCzas jest podany w taktach procesora"; MessageBox.Show(message, "Czas Działania"); }