I have a project that needs a certain set of tasks run at a specific time. I know how to use System.Timers and all that, but I was wondering if there was a better method to nail a timer to a specific time.
Right now the windows service starts out by checking the time every hour until its designated start hour and then it resets the timer.interval to be the main cycle length.
I would like to check every minute until the next zero minute. Then check every hour until the hour I need, but how resource expensive is that? I can do it this way but is there a more straight forward way to do it?
-Thanks
Right now the windows service starts out by checking the time every hour until its designated start hour and then it resets the timer.interval to be the main cycle length.
I would like to check every minute until the next zero minute. Then check every hour until the hour I need, but how resource expensive is that? I can do it this way but is there a more straight forward way to do it?
-Thanks