懒得勤快 7 년 전
부모
커밋
4182ece5fc
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      Masuit.Tools.Core/Systems/StopwatchExtension.cs

+ 8 - 0
Masuit.Tools.Core/Systems/StopwatchExtension.cs

@@ -3,8 +3,16 @@ using System.Diagnostics;
 
 namespace Masuit.Tools.Systems
 {
+    /// <summary>
+    /// stopwatch扩展
+    /// </summary>
     public static class StopwatchExtension
     {
+        /// <summary>
+        /// 检测方法执行时间
+        /// </summary>
+        /// <param name="action"></param>
+        /// <returns></returns>
         public static double Execute(Action action)
         {
             Stopwatch sw = Stopwatch.StartNew();