private void ProcessInfoThread() { while (Thread.CurrentThread.ThreadState == ThreadState.Running) { Thread.Sleep(updateProcessInfoEveryMiliseconds); processInfoManager.Tick(); } }
void ProcessInfoThread() { processInfoManager = new ProcessInfoManager(numberOfProcessInfoSamplesToAverage, secondsToKeepWatchingProcessWithNoRequests); while (Thread.CurrentThread.ThreadState == ThreadState.Running) { Thread.Sleep(updateProcessInfoEveryMiliseconds); processInfoManager.Tick(); } }