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