Article View: borland.public.cppbuilder.nativeapi
Article #11462Re: Sleep time resolution (Thanks)
From: Detlef
Date: Thu, 12 Feb 2004 16:14
Date: Thu, 12 Feb 2004 16:14
18 lines
1642 bytes
1642 bytes
Thank you all for your time, it works with multi media timer. Detlef "Detlef" <detlef.stute@seatec-gmbh.com> schrieb im Newsbeitrag news:402b4f78$1@newsgroups.borland.com... > Hi all, > I'm using Win2K and like to communicate with a digital IO card with a > frequence of 200 Hz. I'm using a thread to send data to the card. > The problem is that windows supports only sleep timeslices of 10/15 ms ( > depending on processor) or Sleep(0). > If I use Sleep( 0) my process uses a lot of processor time. > > Is there a way to create events or sleeps with a resolution of 5 milli > seconds with an accuracy of +/- 1 milli second? > > Detlef > >
Technical Details
Message-ID:
<402ba656$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<402b4f78$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,3e6954a6a5dc7821 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-12 08:41:02 PST Reply-To: "Detlef" <detlef.stute@seatec-gmbh.com> From: "Detlef" <detlef.stute@seatec-gmbh.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <402b4f78$1@newsgroups.borland.com> Subject: Re: Sleep time resolution (Thanks) Date: Thu, 12 Feb 2004 17:14:48 +0100 Lines: 20 Organization: SEATEC GmbH X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 80.134.81.171 Message-ID: <402ba656$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1076602454 80.134.81.171 (12 Feb 2004 08:14:14 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail