// ---------------------------------------------------------------------------------------- /// <!-- Measuring --> /// <summary> /// Run before Measured with the same parameter /// </summary> /// <param name="method"></param> /// <remarks>ABCDEFGHIJKLMNOP</remarks> public static void Measuring(string method) { try { if (Watch == null) { Watch = new Dictionary <string, Stopwatch>(); } if (Watch.ContainsKey(method)) { Watch[method].Reset(); Watch[method].Start(); } else { Watch.Add(method, new Stopwatch()); Watch[method].Start(); } } catch (Exception ex) { string err = ex.Message; } }