Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!orstcs!usenet!prism.CS.ORST.EDU!hamdyz From: hamdyz@prism.CS.ORST.EDU (Zikif Hamdy) Newsgroups: comp.sys.mac.programmer Subject: How to write an alarm clock program? Message-ID: <1990Dec29.214159.28107@usenet@scion.CS.ORST.EDU> Date: 29 Dec 90 21:41:59 GMT Sender: @usenet@scion.CS.ORST.EDU Reply-To: hamdyz@prism.CS.ORST.EDU (Zikif Hamdy) Distribution: usa Organization: Oregon State Univ. -- Computer Science Lines: 18 Nntp-Posting-Host: prism.cs.orst.edu I am writing a clock application (MultiFinder aware) and I have a problem how to check an alarm. The current version is I keep comparing the alarm againts the current time while I am idle (no event pending). My questions are : How do you check the alarm in the most efficient way? By this I mean I won't miss the alarm no matter where I am or what other programs are doing (in background, in foreground). If I have to use clock/time interrupt, how could I do it? (sample of code will be appreciated). What documentation do I have to read? Thank you very much in advance. Zikif Hamdy hamdyz@prism.cs.orst.edu ----------------------------