System.Diagnostics.NtProcessManager.ReadCounterValue C# (CSharp) Method

ReadCounterValue() static private method

static private ReadCounterValue ( int counterType, IntPtr dataPtr ) : long
counterType int
dataPtr IntPtr
return long
        static long ReadCounterValue(int counterType, IntPtr dataPtr)
        {
            if ((counterType & Interop.Advapi32.PerfCounterOptions.NtPerfCounterSizeLarge) != 0)
                return Marshal.ReadInt64(dataPtr);
            else
                return (long)Marshal.ReadInt32(dataPtr);
        }