rockom
March 5th, 2010, 10:25 PM
Hi,
I've got a function I want to call every day at midnight. I intend to use a time structure (struct tm) and compare the hours and minutes to that of midnight (00:00). Simple enough I think. However, I was curious if there is a more elegant approach. Possibly a cron library or some other set of functions/libraries to schedule events. For now, I'm only doing this once but if I were scheduling multiple events all at different times, I'd like to know if a better option is available.
using C
Thanks,
-Rocko
I've got a function I want to call every day at midnight. I intend to use a time structure (struct tm) and compare the hours and minutes to that of midnight (00:00). Simple enough I think. However, I was curious if there is a more elegant approach. Possibly a cron library or some other set of functions/libraries to schedule events. For now, I'm only doing this once but if I were scheduling multiple events all at different times, I'd like to know if a better option is available.
using C
Thanks,
-Rocko