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