Windows环境下,CreateThread是操作系统级函数,而在C/C++开发时应该调用C/C++的运行库函数_beginthread或者更为安全的_beginThreadEx;
对于定时器CreateWaitableTimer相对于SetTimer,会大大减少系统资源;
具体用法大致如下:
#include<iostream>
#include <Windows.h>
#include <string>
#include <process.h>
using namespace std;
class MyTimer
{
public:
H