Article View: borland.public.cppbuilder.nativeapi
Article #11169Re: Finegrain Sleep
From: Benjamin Pratt
Date: Tue, 24 Feb 2004 22:02
Date: Tue, 24 Feb 2004 22:02
71 lines
5282 bytes
5282 bytes
I think I have found a coorelation. Here are the results from a wide range of computers running at the high school and my computer. The three tables are the same results just sorted in different ways. This says to me that: 1. There is a proportional relationship between Processor speed and FileTime speed. Faster processor == faster FileTime. 2. There is NOT a proportional relationship between processor speed and GetTickCount. Generally, Win2k machines execute GetTickCount quicker then WinXP machines regardless of processor speed. 3. Modern OSes execute FileTime quicker then older OSes, even on slower processors. Conclusion: The execution time of GetSystemTimeAsFileTime is quickened by increased processor speed and modern Operating Systems. By contrast, the execution time of GetTickCount is generally faster on older Operating Systems, regardless of processor speed. As a result, in systems with fast processors and modern Operating Systems, GetSystemTimeAsFileTime will out perform GetTickCount. The exception to the rule is with Athlon's. They execute GetSystemTimeAsFileTime quickly regardless of OS or CPU speed. Sorted by FileTime speed Processor | Speed | OS | FileTime | TickCount | FtFaster? ------------------------------------------------------------------------- Xeon 2.8ghz Win2003Svr 6.4653e-009 1.07691e-008 Y P4 1.8ghz Win2k 9.52076e-009 2.11312e-008 Y Athlon 900mhz Win2k 9.60642e-009 1.26023e-008 Y P4 1.8ghz WinXP 1.01437-008 2.11256-008 Y P4 1.8ghz WinXP 1.01577e-008 2.11284e-008 Y P3 933mhz Win2k 1.29346-008 9.68279-009 N Dual-P3 733mhz Win2k 1.65199e-008 1.23655e-008 N Quad-Xeon 700mhz Win2k 1.72205e-008 1.28792e-008 N P3 550mhz Win2K 2.18352e-008 1.63457e-008 N P3 550mhz WinXP 2.18659e-008 5.40068e-008 Y P2 400mhz Win2k 2.99312e-008 2.23269-008 N Sorted by TickCount speed Processor | Speed | OS | FileTime | TickCount | FtFaster? ------------------------------------------------------------------------- P3 933mhz Win2k 1.29346-008 9.68279-009 N Xeon 2.8ghz Win2003Svr 6.4653e-009 1.07691e-008 Y Dual-P3 733mhz Win2k 1.65199e-008 1.23655e-008 N Athlon 900mhz Win2k 9.60642e-009 1.26023e-008 Y Quad-Xeon 700mhz Win2k 1.72205e-008 1.28792e-008 N P3 550mhz Win2K 2.18352e-008 1.63457e-008 N P4 1.8ghz WinXP 1.01437-008 2.11256-008 Y P4 1.8ghz WinXP 1.01577e-008 2.11284e-008 Y P4 1.8ghz Win2k 9.52076e-009 2.11312e-008 Y P2 400mhz Win2k 2.99312e-008 2.23269-008 N P3 550mhz WinXP 2.18659e-008 5.40068e-008 Y Sorted by OS age Processor | Speed | OS | FileTime | TickCount | FtFaster? ------------------------------------------------------------------------- Xeon 2.8ghz Win2003Svr 6.4653e-009 1.07691e-008 Y P4 1.8ghz WinXP 1.01437-008 2.11256-008 Y P4 1.8ghz WinXP 1.01577e-008 2.11284e-008 Y P3 550mhz WinXP 2.18659e-008 5.40068e-008 Y P4 1.8ghz Win2k 9.52076e-009 2.11312e-008 Y Athlon 900mhz Win2k 9.60642e-009 1.26023e-008 Y P3 933mhz Win2k 1.29346-008 9.68279-009 N Dual-P3 733mhz Win2k 1.65199e-008 1.23655e-008 N Quad-Xeon 700mhz Win2k 1.72205e-008 1.28792e-008 N P3 550mhz Win2K 2.18352e-008 1.63457e-008 N P2 400mhz Win2k 2.99312e-008 2.23269-008 N
Technical Details
Message-ID:
<403bc95e$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-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> <403b0261@newsgroups.borland.com> <403b4567$3@newsgroups.borland.com> <403b4949@newsgroups.borland.com> <403bab5f@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-24 14:10:27 PST From: "Benjamin Pratt" <benjamin.pratt.getridofthis@verizon.net> 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> <403b0261@newsgroups.borland.com> <403b4567$3@newsgroups.borland.com> <403b4949@newsgroups.borland.com> <403bab5f@newsgroups.borland.com> Subject: Re: Finegrain Sleep Date: Tue, 24 Feb 2004 14:02:47 -0800 Lines: 73 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: 24.130.93.201 Message-ID: <403bc95e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077659998 24.130.93.201 (24 Feb 2004 13:59:58 -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