home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14053 < prev    next >
Encoding:
Text File  |  1992-08-15  |  866 b   |  20 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!news.claremont.edu!ucivax!noiro.acs.uci.edu!network.ucsd.edu!pacbell.com!well!oster
  3. From: oster@well.sf.ca.us (David Phillip Oster)
  4. Subject: Re: Better than TickCount?
  5. Message-ID: <Bt297z.tH@well.sf.ca.us>
  6. Sender: news@well.sf.ca.us
  7. Organization: Whole Earth 'Lectronic Link
  8. References: <1992Aug16.023716.13162@midway.uchicago.edu>
  9. Date: Sun, 16 Aug 1992 05:14:23 GMT
  10. Lines: 8
  11.  
  12. In article <1992Aug16.023716.13162@midway.uchicago.edu> hd12@midway.uchicago.edu writes:
  13. >Sorry if this is a FAQ. Is there a more accurate way to control time than
  14. >TickCount? Thanks for the help!
  15.  
  16. You can set up a time manager task to increment a global variable every
  17. millisecond. Then use this variable like a TickCount.  Beware, 2^32
  18. milliseconds is not a lot of time.  Make sure you handle wraparound of
  19. the counter gracefullly
  20.