// CPU History by B.Arnold // // The object of this program is to display the CPU Usage History for // the last several minites. It uses the Performance Counters that // are built into the operating system. The display is a graph like // a partial view of the Windows Task Manager but with the display // filtered with a 10 second low pass filter. // Version 1.45 Mar 2009 Auto scaling expanded with 250, 2500, 25000, etc. // Icon bug fixed. // Common Filter created using Tracking Reference paradyme. // Version 1.42 Mar 2009 Warning about CPU BUSY now only checks every 60 seconds. // On slow computers this was on continuously. // Version 1.40 Feb 2009 Scalling algorithm added for axis values and frame // changed to Sizeable. And, because it's sizeable, the // fudge factor in has been removed in SnapWindow(). // Version 1.35 Feb 2009 Fixed bug caused by user changing system font // DPI to other than 96. A ScaleTransform is used // after getting the actual grid size. This resizes // the actual plotting area. This also requires that the // BackgroundImageLayout of the pictureBox1 is "Stretch". // Version 1.30 Feb 2009 Ordinate scales added on each side. // Net scales are dynamically adjusted. // Help screen has option to clear data. // Version 1.29 Feb 2009 "Ms TCP Loopback Interface" network port // bypassed in the calculations since this // data does not contribute to bandwidth. // In InitializeNetCounter, the array of NIC's // is modified. // Version 1.24 Feb 2009 Complex multiple Network activity added. // InitializeNetCounter(void)created. // Various network instances are handled. // Windows snaps to corner/edge when moved close. // Version 1.10 Oct 2008 Notify Icon replaces taskbar when minimized // and Taskbar panel is now hidden. // 2nd red line added for USER percent usage. // Version 1.00 May 2008 Basic version with CPU history.