🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #15803

Re: how to sleep 10 milisecond

#15803
From: Ted Lyngmo
Date: Fri, 13 Jun 2003 03:24
18 lines
1556 bytes
Boguslaw Fries wrote:
 > Hello,
 > I need a function, which sleeps my thread for 5 - 10 milisecond but not
 > more!
 > Standad function Sleep( 10 ) - in cfact sleeps my thread fo 30 milisecond

The trick in Windows is usually to try to avoid realtime dependencies.
What are you using the 5-10ms pause for? Maybe there's another solution to
the problem?

Other than that, look at Bobs answers 1 and 2.

Kind regards,
Ted Lyngmo

-- 
Replace MY_FIRST_NAME in my email address with my first name to send a private
email to me.
Technical Details
Message-ID: <3EE943F4.5080105@lyncon.se>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ee8c0df@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,b6af681927951d13
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-12 20:31:16 PST
Message-ID: <3EE943F4.5080105@lyncon.se>
Date: Fri, 13 Jun 2003 05:24:36 +0200
From: Ted Lyngmo <MY_FIRST_NAME@lyncon.se>
Organization: Lyncon - Computer & Music consulting
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1
X-Accept-Language: sv,en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: how to sleep 10 milisecond
References: <3ee8c0df@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 217.215.147.98
X-Trace: newsgroups.borland.com 1055474729 217.215.147.98 (12 Jun 2003 20:25:29 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail