I'm building an application that needs to fire an event every second, but it needs to be at the top of every second. Firing between seconds is not good enough. I don't think a timer will be acceptable since, while I can set it to fire every second, I can not tell it to start at the top of the second. And it will probably drift slightly over time.
Is there maybe a system level event that i can hook into that will fire as the system time updates?
Any other ideas on how I could accomplish this?