会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Loading
dsmilely
首页
管理
2021年11月12日
计算C#代码运行总时长的方法
摘要: 以下代码在弹窗中显示内容为以秒计所花费时间,如需以毫秒、分钟、小时、天计时,只需将TotalSeconds修改为对应的属性即可 Stopwatch stopwatch = new Stopwatch(); stopwatch.Start(); //代码段 stopwatch.Stop(); Time
阅读全文
posted @ 2021-11-12 17:07 dsmilely
阅读(101)
评论(0)
推荐(0)
编辑
公告