Esempio n. 1
0
 public static void PrintTimeWithFlag(string message = "")
 {
     if (!Flag.ContainsKey("Timer") || !Flag["Timer"])
     {
         return;
     }
     if (!Stopwatch.IsRunning)
     {
         Stopwatch.Start();
     }
     Stopwatch.Stop();
     Logger.Debug(message + "Time: " + Stopwatch.ElapsedMilliseconds + "ms");
     Stopwatch.Restart();
 }