使用Stopwatch测量运行时间
发布日期:2022-02-01 14:28:16 浏览次数:39 分类:技术文章

本文共 292 字,大约阅读时间需要 1 分钟。

使用Stopwatch测量运行时间

 Stopwatch Watch = new Stopwatch(); //启动计时器 Watch.Start(); log.Debug($"开始调用GetDimensionErrorPage_4:{Watch.ElapsedMilliseconds} ms"); //这里做一些耗时的事情 //这里做一些耗时的事情 //这里做一些耗时的事情 log.Debug($"调用完成 GetDimensionErrorPage_4:{Watch.ElapsedMilliseconds} ms"); Watch.Stop(); Watch = null;

 

转载地址:https://blog.csdn.net/shunlu/article/details/84068804 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:linux下文件的复制、移动与删除
下一篇:使用EF框架的增删改查和分页的公共类

发表评论

最新留言

哈哈,博客排版真的漂亮呢~
[***.90.31.176]2024年04月19日 01时52分02秒