NewTOAPIA.CClock.readCPUFrequency C# (CSharp) Method

readCPUFrequency() public static method

Returns the frequency of the CPU in Mhz
public static readCPUFrequency ( ) : double
return double
        public static double readCPUFrequency()
        {
            if (System.Diagnostics.Stopwatch.IsHighResolution)
                return (double)System.Diagnostics.Stopwatch.Frequency / gMhzFactor;
            else
                return 1;
        }
        #endregion