03-29-2011 12:30 AM
"Set an alarm" could mean many different things, including triggering a sound after some interval, waking up a process at a given wall-clock time, generating a user notification that some deadline has passed, and so on.
What do you really want here?
03-29-2011 03:58 AM
Use a timer ( http://blogs.adobe.com/pdehaan/2006/07/using_the_t
if they are met: fire the alarm (do the things you want to happen).