摘要: 开发过程中,有时需要测试接口运行时间,net平台直接提供了Stopwatch类来操作 var s = new System.Diagnostics.Stopwatch(); s.Start(); //程序执行代码 s.Stop(); s.ElapsedMilliseconds //得到执行毫秒 阅读全文
posted @ 2024-01-30 15:13 清和时光 阅读(48) 评论(0) 推荐(0) 编辑