Path: utzoo!utgpu!attcan!uunet!cbmvax!higgin From: higgin@cbmvax.UUCP (Paul Higginbottom MKT) Newsgroups: comp.sys.amiga.tech Subject: Re: Timer question Message-ID: <5635@cbmvax.UUCP> Date: 6 Jan 89 15:09:36 GMT References: <427@tekn01.chalmers.se> <3210@amiga.UUCP> <3137@sugar.uu.net> <5584@cbmvax.UUCP> <3209@sugar.uu.net> Reply-To: higgin@cbmvax.UUCP (Paul Higginbottom MKT) Organization: Commodore Technology, West Chester, PA Lines: 38 In article <3209@sugar.uu.net> karl@sugar.uu.net (Karl Lehenbauer) writes: $I have written code based on Paul Higginbottom's code published in Amiga mail $that uses one of the CIA timers to provide a microsecond-resolution realtime $clock. Someone used it! I feel good. $[describes his application... deleted] $ $It works. Even better! $But I think it needs to be a library, see, because I already have a couple $MIDI programs that need to make use of it. I was thinking "library" because $it provides a way for tasks to locate the address of the long word that's $being incremented by the interrupt routine. This is true. When I wrote the code I realized that it really wasn't "multi-tasking friendly" but my need for the functionality (as it would seem yours) was overwhelming so I did it the way it was published. Ideally it could be done as a handler with clients added such that each client's timer variable can be updated. Ooh, but how does that work given each client will want different precision? Perhaps a "minimum precision" must be set, and all client precisions are a multiple of this? This could mean a LOT of interrupts for the main handler. Solutions? $So I'd like a little feedback on this, and any notes on how to make it a $library if that's the way to go. It's unclear to me how a library would help. $-- uunet!sugar!karl | "We've been following your progress with considerable $-- karl@sugar.uu.net | interest, not to say contempt." -- Zaphod Beeblebrox IV $-- Usenet BBS (713) 438-5018 Paul.