Exemplo n.º 1
0
 public static void Sleep(long ms, SleepReason reason)
 {
     if (ms > 10 * 1000)
     {
         Logger.Instance.Information("Sleeping for {Ms}ms, until {V}, because: {Reason}", ms, new DateTime().AddMilliseconds(ms).ToString(), reason);
     }
     else
     {
         Logger.Instance.Information("Sleeping for {Ms}ms, because: {Reason}", ms, reason);
     }
     Sleep(ms, true);
 }
Exemplo n.º 2
0
 public static void Sleep(int seconds, SleepReason reason)
 {
     Sleep(seconds * 1000L, reason);
 }