🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: how to sleep 10 milisecond

#15804
From: Wayne A. King
Date: Fri, 13 Jun 2003 03:40
15 lines
1370 bytes
On Thu, 12 Jun 2003 20:05:14 +0200, "Boguslaw Fries" <B.Fries@luca-online.de>
wrote:

>I need a function, which sleeps my thread for 5 - 10 milisecond but not
>more!

Can't be guaranteed, since Windows won't *rigorously* preempt other 
tasks to allow yours to reactivate. Finer resolution than Sleep() may be
achieved by using the multimedia timers. Consult the Win32 API help or
MSDN.

--
Wayne A. King 
(ba994@torfree.net, wayne.king@ablelink.org, 
 waking@idirect.com, Wayne_A_King@compuserve.com)
Technical Details
Message-ID: <3ee946b1.47153496@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!canoe.uoregon.edu!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!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:48:29 PST
From: waking@idirect.com (Wayne A. King)
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: how to sleep 10 milisecond
Date: Fri, 13 Jun 2003 03:40:57 GMT
Message-ID: <3ee946b1.47153496@newsgroups.borland.com>
References: <3ee8c0df@newsgroups.borland.com>
X-Newsreader: Forte Free Agent 1.21/16.243
NNTP-Posting-Host: 216.192.87.7
X-Trace: newsgroups.borland.com 1055475782 216.192.87.7 (12 Jun 2003 20:43:02 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!canoe.uoregon.edu!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail