摘要: //用Stopwatch类(System.Diagnostics)计算耗时static void SubTest() { Stopwatch sw = new Stopwatch(); sw.Start(); //耗时巨大的代码 sw.Stop(); TimeSpan ts2 = sw.Elapse 阅读全文
posted @ 2019-12-13 15:37 游不动 阅读(2239) 评论(0) 推荐(1) 编辑