c++ Programming Glossary: lastcpu
How to determine CPU and memory consumption from inside a process? http://stackoverflow.com/questions/63166/how-to-determine-cpu-and-memory-consumption-from-inside-a-process current process #include windows.h static ULARGE_INTEGER lastCPU lastSysCPU lastUserCPU static int numProcessors static HANDLE.. GetSystemTimeAsFileTime &ftime memcpy &lastCPU &ftime sizeof FILETIME self GetCurrentProcess GetProcessTimes.. user.QuadPart lastUserCPU.QuadPart percent now.QuadPart lastCPU.QuadPart percent numProcessors lastCPU now lastUserCPU user..
|