Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!batcomputer!rpi!rpi.edu!deven From: deven@pawl.rpi.edu (Deven Corzine) Newsgroups: comp.sys.amiga.tech Subject: Re: Amigix (Re: alarm() function) Message-ID: Date: 23 Mar 89 21:30:38 GMT References: <70@snll-arpagw.UUCP> <6363@cbmvax.UUCP> <6381@cbmvax.UUCP> Sender: usenet@rpi.edu Reply-To: shadow@pawl.rpi.edu (Deven Thomas Corzine) Organization: RPI Public Access Workstation Lab, Troy NY Lines: 26 In-reply-to: jesup@cbmvax.UUCP's message of 23 Mar 89 19:34:44 GMT In article <6381@cbmvax.UUCP> jesup@cbmvax.UUCP (Randell Jesup) writes: >In article shadow@pawl.rpi.edu (Deven Thomas Corzine) writes: >> > CheckIO only tells you whether the request hs finished. >> >>True. I suppose you could look at the IOrequest which probably >>contains the remaining time, but that's not legal, and not nice at >>all. So, the question is, is there a legal way to find the time >>remaining on a timer request? AbortIO/WaitIO and THEN check the time >>fields? Something else? (Preferably something that won't break in >>the future...) > Remember the time you started the request, and the length, seperately >from the IO request itself. To determine how much time is left, ask timer >what time it is, and use determine the amount of time remaining. I think >timer has an entry for subtracting time values for you. Indeed. (I probably would've thought of it sooner or later. :-) Yeah, the timer has time arithmetic functions available... That'll work fine. Will do. Deven -- ------- shadow@pawl.rpi.edu ------- Deven Thomas Corzine --------------------- Cogito shadow@acm.rpi.edu 2346 15th Street Pi-Rho America ergo userfxb6@rpitsmts.bitnet Troy, NY 12180-2306 (518) 272-5847 sum... In the immortal words of Socrates: "I drank what?" ...I think.