Interested in something similar to JavaScript setTimeout in C on both UNIX and Windows.
Basically, I want:
start_timer(&function_pointer, int time_in_secs)
or as close to that as I can get.
Also, something similar to setInterval would be nice (where it calls the callback every n seconds), but that can be implemented using setTimeout :)
SetTimer in Win32 with a TimerProc as the call back.
/* calls TimerProc once every 60000 milliseconds */
SetTimer(NULL, 1, 60000, TimerProc);
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