C# 显示当前耗时
1 var stopwatch = Stopwatch.StartNew(); 2 Thread.Sleep(1000); 3 Console.WriteLine($"Elapsed time:{stopwatch.Elapsed}");
posted on 2021-11-17 10:26 Shine-Zhong 阅读(77) 评论(0) 收藏 举报
1 var stopwatch = Stopwatch.StartNew(); 2 Thread.Sleep(1000); 3 Console.WriteLine($"Elapsed time:{stopwatch.Elapsed}");
posted on 2021-11-17 10:26 Shine-Zhong 阅读(77) 评论(0) 收藏 举报
