Path: 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 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 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=