public static double readCPUFrequency() { if (System.Diagnostics.Stopwatch.IsHighResolution) return (double)System.Diagnostics.Stopwatch.Frequency / gMhzFactor; else return 1; } #endregion