欢乐狗 发表于 2023-7-21 01:04:06

使用 c++ 在 windows 上稳定定时执行一个函数

#include #include #include #pragma comment( lib, "Winmm" )static int counter = 0;static int64_t ticks_per_second;void __stdcall on_timer(HWND h, UINT ui, UINT_PTR up, DWORD dw){    std::cout
页: [1]
查看完整版本: 使用 c++ 在 windows 上稳定定时执行一个函数