Article View: borland.public.cppbuilder.nativeapi
Article #11130Re: Finegrain Sleep
From: Steve Aletto
Date: Mon, 23 Feb 2004 08:37
Date: Mon, 23 Feb 2004 08:37
23 lines
1906 bytes
1906 bytes
> GetSystemTimeAsFileTime takes 0.00000000958222 seconds to execute > > GetTickCount takes 0.0000000135771 seconds to execute How did you take such measures? I mean, which function did you use? Anyway, I think GetSystemTimeAsFileTime() doesn't give a value you can use at once as GetTickCount() does. You need to call some other function or do some operations before. So, basically, you should evaluate all the operations needed in my opinion. However, your tests surprised me, I really didn't think the call to GetSystemTimeAsFileTime() takes less time than GetTickCount(). > I averaged 10,000 calls in each case. However, the basic premise that > GetSystemTimeAsFileTime isn't any better than GetTickCount is true. Good. Steve.
Technical Details
Message-ID:
<4039bbb9@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.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> <4035bee9@newsgroups.borland.com> <40365c30$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-23 00:39:30 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> <4035bee9@newsgroups.borland.com> <40365c30$1@newsgroups.borland.com> Subject: Re: Finegrain Sleep Date: Mon, 23 Feb 2004 09:37:48 +0100 Lines: 25 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: <4039bbb9@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077525433 80.105.101.132 (23 Feb 2004 00:37:13 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail