home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zephyr.ens.tek.com!gvgpsa!treehouse!andyp
- From: andyp@treehouse.UUCP (Andy Peterman)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Better than TickCount?
- Message-ID: <1412@treehouse.UUCP>
- Date: 16 Aug 92 19:09:41 GMT
- References: <1992Aug16.023716.13162@midway.uchicago.edu>
- Organization: The Treehouse
- Lines: 24
-
- Organization: The Treehouse
- In article <Bt297z.tH@well.sf.ca.us> oster@well.sf.ca.us (David Phillip
- Oster) writes:
- >In article <1992Aug16.023716.13162@midway.uchicago.edu>
- hd12@midway.uchicago.e
- du writes:
- >>Sorry if this is a FAQ. Is there a more accurate way to control time than
- >>TickCount? Thanks for the help!
- >
- >You can set up a time manager task to increment a global variable every
- >millisecond. Then use this variable like a TickCount. Beware, 2^32
- >milliseconds is not a lot of time. Make sure you handle wraparound of
- >the counter gracefullly
-
- I've also been needing a millisecond type "ticker" to be able to read (the
- normal 16 ms TickCount is just too coarse), but wonder what creating a
- millisecond ticker using the time manager would do to performance. What
- sort of overhead does the time manager require? I once measured (on older
- and slower Macs) the vertical interrupts taking a few hundred microseconds.
- I sure hate to do that every 1000 usec or so!!
- --
- Andy Peterman
- treehouse!andyp@gvgpsa.gvg.tek.com
- (916) 273-4569
-