private void ButtonNacitaj_Click(object sender, RoutedEventArgs e) { Stopwatch time = Stopwatch.StartNew(); AfrikaKataster.Nacitaj(); time.Stop(); var cas = time.Elapsed; MessageBox.Show("Nacitane time: " + cas, "OK"); }