Alarm Clock
-
I'm thinking about writing a simple alarm clock for myself so I've just been doing some research looking at how some other ones have been desinged and most programs I've looked at use a timer to check if an alarm time has been hit. I'm just wondering if this is the best way to do it or if there is another way that would accomplish the same thing. Thanks for the information. - Aaron
-
I'm thinking about writing a simple alarm clock for myself so I've just been doing some research looking at how some other ones have been desinged and most programs I've looked at use a timer to check if an alarm time has been hit. I'm just wondering if this is the best way to do it or if there is another way that would accomplish the same thing. Thanks for the information. - Aaron
monrobot13 wrote:
use a timer to check if an alarm time has been hit
That seems about right. You could get by with a single (reasonably high resolution - eg: < 1 Sec.) timer or one timer per alarm (assuming you can have multiple alarms). A single timer is of course less resource intensive. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com
-
monrobot13 wrote:
use a timer to check if an alarm time has been hit
That seems about right. You could get by with a single (reasonably high resolution - eg: < 1 Sec.) timer or one timer per alarm (assuming you can have multiple alarms). A single timer is of course less resource intensive. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com
Thanks very much for the info. - Aaron