Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!oliveb!amiga!cbmvax!jesup From: jesup@cbmvax.UUCP (Randell Jesup) Newsgroups: comp.sys.amiga.tech Subject: Re: Amigix (Re: alarm() function) Message-ID: <6381@cbmvax.UUCP> Date: 23 Mar 89 19:34:44 GMT References: <70@snll-arpagw.UUCP> <6363@cbmvax.UUCP> Reply-To: jesup@cbmvax.UUCP (Randell Jesup) Organization: Commodore Technology, West Chester, PA Lines: 17 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. -- Randell Jesup, Commodore Engineering {uunet|rutgers|allegra}!cbmvax!jesup