Does the Windows native API support timers?
I am aware that POSIX implementations on Windows support timers, but I am interested in Windows SDK APIs.
Yes there are timers in Win32 API. More details you can check here : Timers
In particular you need to check
It sure does: http://windows-programming.suite101.com/article.cfm/using_the_win32_timer_api
The SetTimer
API mentioned in that article depends on the WM_TIMER
message, which means that you have to have a message loop, which means that you (probably) have to have a window. So it's very useful for GUI programming, less so for command-line tools.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With