home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / os2 / programm / 6628 < prev    next >
Encoding:
Text File  |  1992-11-23  |  1.3 KB  |  28 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!wupost!monsanto.com!nicsn1.monsanto.com!kncarp
  3. From: kncarp@nicsn1.monsanto.com (Kevin N. Carpenter)
  4. Subject: Freeing time in DOS Window
  5. Message-ID: <1992Nov23.152733.14755@tin.monsanto.com>
  6. Sender: news@tin.monsanto.com (USENET News System)
  7. Organization: Monsanto Company
  8. X-Newsreader: Tin 1.1 PL3
  9. Date: Mon, 23 Nov 1992 15:27:33 GMT
  10. Lines: 16
  11.  
  12. I have a DOS app. that controls some hardware hanging off my machine.  This
  13. application "wakes up" every 60 seconds to adjust the hardware.  Currently
  14. the 60 seconds is consumed by a TC++ 2.0 DELAY(60) statement.  I've noticed
  15. (via Pulse) that this Delay statement appears to consume CPU.
  16.  
  17. Is there any call/interrupt/etc. that I could issue that would just tell
  18. OS/2 to go away for 60 seconds and stop consuming the CPU?  All else failing,
  19. I'll do my own time comparision and issues DESQview API calls to free the
  20. remaining time in each time slice.  If I load OS2SPEED first, this will do
  21. the trick (it works for FrontDoor and other DESQview aware programs).  I'm
  22. just looking for a cleaner method.
  23. --
  24. Kevin Carpenter       Internet:  kncarp@nicsn1.monsanto.com
  25. Monsanto Company      Fidonet:   1:100/215.0 (home)
  26. St. Louis, Missouri, U.S.A.
  27. Opinions expressed are those of the author, not the company he works for. 
  28.