Stopwatch类

1 Stopwatch timer = new Stopwatch();  
2 timer.Start();  
3 //要测试的代码  
4 timer.Stop(); 

 

posted @ 2019-07-31 09:37  码到世界末日  阅读(185)  评论(0编辑  收藏  举报