如何实现在Windows上用C定时器 [英] How to implement a timer in C on windows
本文介绍了如何实现在Windows上用C定时器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何创建在C定时器和时间到期后,我应该能够调用回调函数。该平台是Windows。
How do I create a timer in C and after the time expires ,I should be able to call a callback function . The platform is windows.
有人能指导我。
问候,
大额牛
Regards, Mithun
推荐答案
看看的 SetTimer的功能。
UINT_PTR timerid = SetTimer(NULL, 0, milliseconds, &callback);
这篇关于如何实现在Windows上用C定时器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文