Article View: borland.public.cppbuilder.nativeapi
Article #11455Sleep time resolution
From: Detlef
Date: Thu, 12 Feb 2004 10:04
Date: Thu, 12 Feb 2004 10:04
11 lines
1378 bytes
1378 bytes
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:
<402b4f78$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-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,3e6954a6a5dc7821,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-12 02:09:40 PST Reply-To: "Detlef" <detlef.stute@seatec-gmbh.com> From: "Detlef" <detlef.stute@seatec-gmbh.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Sleep time resolution Date: Thu, 12 Feb 2004 11:04:09 +0100 Lines: 13 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.69.94 Message-ID: <402b4f78$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1076580216 80.134.69.94 (12 Feb 2004 02:03:36 -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