Here's my problem. I have an application as a windows service that needs to be executed 15 seconds after the current execution of the task is finished.
The task basically performs operations on the database, and it may take more than 15 seconds for the task to run.
My code to determine the execution interval looks like this:
worker = new Timer(new TimerCallback(saveFiles), null, 0, interval);