diff --git a/Tasks/UrlTester/MainWindow.xaml b/Tasks/UrlTester/MainWindow.xaml
index e6d081b..e82426d 100644
--- a/Tasks/UrlTester/MainWindow.xaml
+++ b/Tasks/UrlTester/MainWindow.xaml
@@ -26,8 +26,11 @@
-
-
+
+
diff --git a/Tasks/UrlTester/MainWindow.xaml.cs b/Tasks/UrlTester/MainWindow.xaml.cs
index 2fff3b5..c412bbb 100644
--- a/Tasks/UrlTester/MainWindow.xaml.cs
+++ b/Tasks/UrlTester/MainWindow.xaml.cs
@@ -1,4 +1,5 @@
-using System.Text;
+using System.Diagnostics;
+using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
@@ -8,6 +9,7 @@ using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
+using DT2;
namespace UrlTester;
@@ -20,4 +22,14 @@ public partial class MainWindow : Window
{
InitializeComponent();
}
+
+ public void GetUrl(object sender, RoutedEventArgs e)
+ {
+ var stopWatch = new Stopwatch();
+ stopWatch.Start();
+ int size = new DT2.UrlTester().GetUrlSync(urlBox.Text);
+ stopWatch.Stop();
+ bytesBox.Text = $"{size} bytes";
+ timeBox.Text = $"{stopWatch.ElapsedMilliseconds} ms";
+ }
}
\ No newline at end of file