I'm currently writing a C# application that will schedule an event to be fired at a specific time. I started off using the Quartz library for scheduling the event, but my issue is that I need to guarantee that the event will fire within a given second, and Quartz does not offer that precision.
I could spawn a thread via Quartz a few minutes before the actual scheduled time, then just have a loop that tests if the current second is correct.
Is there a better way to do this?