懒得勤快 7 years ago
parent
commit
4182ece5fc
1 changed files with 8 additions and 0 deletions
  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();