摘要:
CPU占用率呈正弦实现,及实时输出进程和线程的CPU占用率#include "stdafx.h"#include #include // 时间转换static __int64 file_time_2_utc(const FILETIME* ftime){ LARGE_INTEGER li; ... 阅读全文
摘要:
格式化日志输出void LogOut(LPCTSTR pFormat, ...){ char LogFile[128]={0}; char str[1024]={0}; FILE** fp=&(ThreadDatas[0].pf); va_list pArg; EnterCriticalSec... 阅读全文
摘要:
获取进程CPU占用率// 时间转换static __int64 file_time_2_utc(const FILETIME* ftime){ LARGE_INTEGER li; li.LowPart = ftime->dwLowDateTime; li.HighPart = ft... 阅读全文
摘要:
#include "stdafx.h"#include #include /*#define FOREGROUND_BLUE 0x0001 // text color contains blue.#define FOREGROUND_GREEN 0x0002 // text col... 阅读全文