- DateTime beforDT = System.DateTime.Now;
-
-
-
- DateTime afterDT = System.DateTime.Now;
- TimeSpan ts = afterDT.Subtract(beforDT);
- Console.WriteLine("DateTime总共花费{0}ms.", ts.TotalMilliseconds);
- Stopwatch sw = new Stopwatch();
- sw.Start();
-
-
-
- sw.Stop();
- TimeSpan ts2 = sw.Elapsed;
- Console.WriteLine("Stopwatch总共花费{0}ms.", ts2.TotalMilliseconds);
相关文章:
-
2022-01-26
-
2022-01-23
-
2021-12-10
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2022-01-23
猜你喜欢
-
2021-05-23
-
2022-01-13
-
2022-12-23
-
2021-07-08
-
2021-09-22
-
2022-12-23
相关资源
-
下载
2021-07-01
-
下载
2022-12-02
-
下载
2021-06-07
-
下载
2021-06-06
-
下载
2021-06-07