Run Code At Certain Time
===

What's the best way of running code when the system clock changes to a certain time? Obviously I could poll, but that seems inefficient.

I don't want a timer; I want to be able to do something at (for instance) 10pm every day.