private void button2_Click(object sender, EventArgs e) { output.Clear(); if (selectedStationContainer.Items.Count == 0) { popNoStationSelectedError(); } Stopwatch stopWatch = new Stopwatch(); stopWatch.Start(); output.Text = prim.primAlgo(); stopWatch.Stop(); output.Text += Environment.NewLine + "Took " + stopWatch.ElapsedMilliseconds + " milliseconds to proccess"; }
private void button2_Click(object sender, EventArgs e) { output.Text = prim.primAlgo(); }