Article View: borland.public.cppbuilder.nativeapi
Article #11157Re: Finegrain Sleep
From: Steve Aletto
Date: Tue, 24 Feb 2004 07:51
Date: Tue, 24 Feb 2004 07:51
34 lines
1892 bytes
1892 bytes
> this is the code I used. Feel free to shoot holes :) Well, I tried it many times on my P4 and the results were quite similar: 19 records 42:53.770 42:53.820 42:53.880 42:53.930 42:53.990 42:54.40 42:54.100 42:54.150 42:54.210 42:54.260 42:54.320 42:54.370 42:54.430 42:54.480 42:54.540 42:54.590 42:54.650 42:54.700 42:54.750 Filetime: 2.39609e-05 TickCount: 2.66439e-07 but if the last two numbers are the average time of the function calls then GetTickCount() is very faster than GetSystemTimeAsFileTime() (or am I doing anything wrong?). Are you sure of the results taken on your Athlon? Steve.
Technical Details
Message-ID:
<403b0261@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!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> <4039bbb9@newsgroups.borland.com> <403acaa5@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 23:53:17 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> <4039bbb9@newsgroups.borland.com> <403acaa5@newsgroups.borland.com> Subject: Re: Finegrain Sleep Date: Tue, 24 Feb 2004 08:51:03 +0100 Lines: 36 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: <403b0261@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077609057 80.105.101.132 (23 Feb 2004 23:50:57 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail