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.
Can someone guide me
Regards, Mithun
Take a look at SetTimer function.
UINT_PTR timerid = SetTimer(NULL, 0, milliseconds, &callback);
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