🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms
Article #2082

Re: sleep() in Windows

#2082
From: Marco Papa
Date: Fri, 01 Dec 1989 19:08
18 lines
1453 bytes
In article <865@rna.UUCP> dan@rna.UUCP (The Dan of all vices) writes:
|In article <21446@usc.edu> papa@pollux.usc.edu (Marco Papa) writes:
||Does anybody have a "quick and dirty" UNIX-like sleep() for Windows?
||If that is not the case, what would be the best way to do it? I.e.:
||1. Using the timer device
|
|	Below is my quick and real-dirty sleep() which I use in regular
|MSC. Love to see a better one that really is friendlier and have it
|really make a difference. Most DOS programs seem to busy-wait anyways.

Busy-wait is a no-no in MS-Windows.  I've already done it using technique
no. 1 and it works like a champ.  If I have some time, maybe I'll post it.

-- Marco
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
uucp:...!pollux!papa       BIX:papa       ARPAnet:pollux!papa@oberon.usc.edu
"There's Alpha, Beta, Gamma, Diga and Caligari!" -- Rick Unland
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID: <21514@usc.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!pollux.usc.edu!papa
References: <21446@usc.edu> <865@rna.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!pollux.usc.edu!papa
From: papa@pollux.usc.edu (Marco Papa)
Newsgroups: comp.windows.ms
Subject: Re: sleep() in Windows
Message-ID: <21514@usc.edu>
Date: 1 Dec 89 19:08:24 GMT
References: <21446@usc.edu> <865@rna.UUCP>
Sender: news@usc.edu
Reply-To: papa@pollux.usc.edu (Marco Papa)
Organization: Felsina Software, Los Angeles, CA
Lines: 18