Beispiel #1
0
 public static void StartCPUDiagnostic()
 {
     timer.Tick += new EventHandler(GetCPUUsage);
     timer.Start();
     cpuCounter.NextValue();
     CatAnimation.Start(150 - (int)cpuCounter.NextValue());
 }
Beispiel #2
0
 public static void GetCPUUsage(object sender, EventArgs e)
 {
     CatAnimation.SetInterval(150 - (int)cpuCounter.NextValue());
 }