Article View: borland.public.cppbuilder.nativeapi
Article #11217Re: Finegrain Sleep
From: Steve Aletto
Date: Fri, 20 Feb 2004 08:02
Date: Fri, 20 Feb 2004 08:02
16 lines
1720 bytes
1720 bytes
> GetTickCount() has a resolution of 10 or 15ms depending on windows version. > I this the poster needs something in the microsecond range. > > GetSystemTimeAsFileTime() has a resolution of 100-nanoseconds Good remark, but I think the call to the function itself introduces a delay longer than the pause you wish. That's why I think also GetSystemTimeAsFileTime() can't give a _precision_ of 100ns although the _resolution_ is 100ns. And I'm quite sure a call to GetSystemTimeAsFileTime() requires a longer time then a call to GetTickCount(). Steve.
Technical Details
Message-ID:
<4035bee9@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4033629c$1@newsgroups.borland.com> <40336c3f@newsgroups.borland.com> <40349ac7@newsgroups.borland.com> <4034d0ba@newsgroups.borland.com> <4034ecd4$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-20 00:09:44 PST Reply-To: "Steve Aletto" <steve_alettoANTI@SPAMhotmail.com> From: "Steve Aletto" <steve_alettoANTI@SPAMhotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4033629c$1@newsgroups.borland.com> <40336c3f@newsgroups.borland.com> <40349ac7@newsgroups.borland.com> <4034d0ba@newsgroups.borland.com> <4034ecd4$1@newsgroups.borland.com> Subject: Re: Finegrain Sleep Date: Fri, 20 Feb 2004 09:02:15 +0100 Lines: 18 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.105.101.132 Message-ID: <4035bee9@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077264105 80.105.101.132 (20 Feb 2004 00:01:45 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail