开发者

CreateTimerQueue for linux

开发者 https://www.devze.com 2022-12-30 07:14 出处:网络
Anyone know if there is any function similar to CreateTimerQueue on linux? Or do I have开发者_运维百科 to make my own.You want to use timer_gettime and timer_settime.Lookup the page on timer_create to

Anyone know if there is any function similar to CreateTimerQueue on linux? Or do I have开发者_运维百科 to make my own.


You want to use timer_gettime and timer_settime. Lookup the page on timer_create to get a nice example


Check out the boost::asio timers for a portable solution: http://www.boost.org/doc/libs/release/doc/html/boost_asio/tutorial.html

If you're already using a GUI toolkit (Qt, wxWidgets), then those usually have some kind of timer facility.

0

精彩评论

暂无评论...
验证码 换一张
取 消