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