测试时间的方法:
Stopwatch sw = new Stopwatch(); sw.Start(); //启动计时 //编写代码执行被测试的算法 sw.Stop();//停止计时 //获取算法执行时间 long UsedTime = sw.ElapsedMilliseconds; //...
posted on 2010-01-08 11:07 迷途 阅读(341) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 迷途 Powered by .NET 9.0 on Kubernetes