Ejemplo n.º 1
0
 private void CpuTimer_Elapsed(object sender, ElapsedEventArgs e)
 {
     if (!cpuMonitor.Ready)
     {
         return;
     }
     Application.Current.Dispatcher.Invoke(() =>
     {
         CpuUsage.Text = cpuMonitor.GetCpuUsage().ToString("F2");
     });
 }