From 385e9324019f00b5c09be2f09ec9e70c65b5f824 Mon Sep 17 00:00:00 2001 From: zengwenjie <1663900244@qq.com> Date: Fri, 17 Oct 2025 10:07:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E3=80=8CDodo=E3=80=8D?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E7=9A=84=E8=B0=83=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DeedyDesigner/Deedy.Testing/App.xaml.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/DeedyDesigner/Deedy.Testing/App.xaml.cs b/DeedyDesigner/Deedy.Testing/App.xaml.cs index 926c43a..1aa9838 100644 --- a/DeedyDesigner/Deedy.Testing/App.xaml.cs +++ b/DeedyDesigner/Deedy.Testing/App.xaml.cs @@ -1,5 +1,6 @@ using System.Configuration; using System.Data; +using System.Diagnostics; using System.Windows; using Deedy.Testing; @@ -42,9 +43,12 @@ whil false @var1 10 < endi endw "; - Todo todo = new Todo(); - todo.Init(script); - todo.Redo(); + Todo todo = new(); + todo.Init("varp var1 111"); + Stopwatch sw = Stopwatch.StartNew(); + for (int i = 0; i < 1000000; i++) + todo.Redo(); + sw.Stop(); } }