Article View: borland.public.cppbuilder.nativeapi
Article #11307Re: Finegrain Sleep
From: Steve Aletto
Date: Wed, 18 Feb 2004 13:45
Date: Wed, 18 Feb 2004 13:45
13 lines
1493 bytes
1493 bytes
> I need a sleep function with a finer grain than a millisecond. Hardly you'll find it. Windows isn't real-time at all and the best timers I know are multimedia timers. You can have a look at them. Have also a look at GetTickCount, QueryPerformaceCounter and associates. > The reason is I am porting a Unix application that has the usleep function > which takes an argument in microseconds. The argument could be even in microseconds, but is the pause so accurate as well? I wouldn't bet on that. HTH, Steve.
Technical Details
Message-ID:
<40336c3f@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:
<4033629c$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,fed9196afef30d83 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-18 06:10:14 PST Reply-To: "Steve Aletto" <steve_alettoNOSPAM@THANKShotmail.com> From: "Steve Aletto" <steve_alettoNOSPAM@THANKShotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4033629c$1@newsgroups.borland.com> Subject: Re: Finegrain Sleep Date: Wed, 18 Feb 2004 14:45:00 +0100 Lines: 15 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 80.105.101.132 Message-ID: <40336c3f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077111871 80.105.101.132 (18 Feb 2004 05:44:31 -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