home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 12760 < prev    next >
Encoding:
Text File  |  1992-07-21  |  902 b   |  24 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!wri!dragonfly.wri.com!thomasc
  3. From: thomasc@dragonfly.wri.com (Thomas Chin)
  4. Subject: Re: How do I sleep w/o using any CPU time
  5. Message-ID: <thomasc.711130550@dragonfly.wri.com>
  6. Sender: news@wri.com
  7. Nntp-Posting-Host: dragonfly.wri.com
  8. Organization: Wolfram Research, Inc.
  9. References: <a684a397@spicewood.uucp> <1992Jul14.114905.2803@bernina.ethz.ch>
  10. Date: Tue, 14 Jul 1992 16:15:50 GMT
  11. Lines: 11
  12.  
  13. >In article <a684a397@spicewood.uucp> David L. Crow, crow@spicewood.uucp
  14. >writes:
  15. >>    Basically, I guess that I just want to know the best way to put
  16. >>  my application to sleep for a given amount of time.
  17.  
  18. With system 7 process manager, you can have a time manager task which do
  19. a 'WakeUpProcess', install the timer, go into your yielding 'WaitNextEvent'
  20. with maximum sleep ticks and empty mask, you'll get a NULL event when the
  21. time is up!
  22.  
  23. -Tom
  24.