优化「Dodo」脚本的调试用例
This commit is contained in:
		@@ -1,5 +1,6 @@
 | 
				
			|||||||
using System.Configuration;
 | 
					using System.Configuration;
 | 
				
			||||||
using System.Data;
 | 
					using System.Data;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
using System.Windows;
 | 
					using System.Windows;
 | 
				
			||||||
using Deedy.Testing;
 | 
					using Deedy.Testing;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -42,9 +43,12 @@ whil false @var1 10 <
 | 
				
			|||||||
    endi
 | 
					    endi
 | 
				
			||||||
endw
 | 
					endw
 | 
				
			||||||
";
 | 
					";
 | 
				
			||||||
            Todo todo = new Todo();
 | 
					            Todo todo = new();
 | 
				
			||||||
            todo.Init(script);
 | 
					            todo.Init("varp var1 111");
 | 
				
			||||||
 | 
					            Stopwatch sw = Stopwatch.StartNew();
 | 
				
			||||||
 | 
					            for (int i = 0; i < 1000000; i++)
 | 
				
			||||||
                todo.Redo();
 | 
					                todo.Redo();
 | 
				
			||||||
 | 
					            sw.Stop();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user