🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #3099

Freeing time in DOS Window

#3099
From: Kevin N. Carpenter
Date: Mon, 23 Nov 1992 15:27
16 lines
1345 bytes
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. 
Technical Details
Message-ID: <1992Nov23.152733.14755@tin.monsanto.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!monsanto.com!nicsn1.monsanto.com!kncarp

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!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