Stopwatch类

1 Stopwatch timer = new Stopwatch();  
2 timer.Start();  
3 //要测试的代码  
4 timer.Stop(); 
相关文章
相关标签/搜索