摘要: 在需要对程序的执行时间进行精准测试的程序员,不妨使用.Net提供的Stopwatch类,它的命名空间是:System.Diagnostics 代码如下: using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; namespace StopWatch { class Program { static void Main(string[] args) { Stopwatch sw = new Stopwatch(); sw.Start(); //这里填写要执行的代码 s 阅读全文
posted @ 2010-12-06 22:19 emanlee 阅读(384) 评论(0) 推荐(1) 编辑