@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: Retrieves system timing information. On a multiprocessor system, the values returned are the sum of the designated times across all processors. !!!!C# Signature: [DllImport("kernel32.dll", SetLastError=true)] static extern bool GetSystemTimes ( out FILETIME lpIdleTime, out FILETIME lpKernelTime, out FILETIME lpUserTime ); !!!!User-Defined Types: None. !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: static int GetIdleTime () { FILETIME idleTime, kernelTime, userTime; GetSystemTimes(out idleTime, out kernelTime, out userTime); ulong idleTimeLong = ((ulong)idleTime.dwHighDateTime << 32) + (uint)idleTime.dwLowDateTime; return (int)(idleTimeLong / TimeSpan.TicksPerMillisecond); } !!!!Alternative Managed API: Do you know one? Please contribute it! Documentation: GetSystemTimes@msdn on MSDN
Edit kernel32.GetSyste...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.