public static void StopProcessWatcher() { logger.Debug("Trying to stop process watcher."); Program.StartWatch.Stop(); Program.StopWatch.Stop(); BoostCheckTimer.Stop(); ProcessWatcherEnabled = false; ProcessPriorityWatcherEnabled?.Invoke(null, new ProcessPriorityWatcherEnabledEventArgs(false)); logger.Debug("Process watcher has been stopped."); }
public static void StartProcessWatcher() { logger.Debug("Trying to start process watcher."); Program.StartWatch.Start(); Program.StopWatch.Start(); BoostCheckTimer.Start(); ProcessWatcherEnabled = true; ProcessPriorityWatcherEnabled?.Invoke(null, new ProcessPriorityWatcherEnabledEventArgs(true)); logger.Debug("Process watcher has been started."); LeagueLogger.Okay("Process watcher started."); }