Article View: borland.public.cppbuilder.nativeapi
Article #12077Re: increasing CLK_TCK
From: Timothy H. Buchman
Date: Thu, 25 Dec 2003 05:09
Date: Thu, 25 Dec 2003 05:09
27 lines
2331 bytes
2331 bytes
"Umut Ozden" <umut_ozden> wrote in message news:3fe92f22$1@newsgroups.borland.com... > Is it possible to increase the value of CLK_TCK defined in > <time.h>(currently, 1000) and measure more exact time with the function call > clock()? You've asked a question about standard C, but since this answer depends on the machine where the code runs, you are probably in the right place if you're using C++ Builder. There have been many posts here about finer resolution timers. Before you write any more code for a Windows machine, you should look at the search site in my signature. Start with "high resolution timer". Many users have reported some success with Windows Multimedia timers and separate threads, but others report that Windows does not multitask reliably enough for precise timing. It depends on why you need the resolution. I doubt that you will get a *specific* answer to your question, because it depends on the internals of the Borland compiler. But honestly, even if you get a good C Standard answer, there is no assurance that Windows will deliver what you need. -- Timothy H. Buchman ======================================== City Center Theater, New York NY mail address tbuchmanPLEASE(at sign)REMOVEcitycenterD O Torg Search .borland message archive on http://www.tamaracka.com/search.htm
Technical Details
Message-ID:
<3fea7231$1@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:
<3fe92f22$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,3b37053d7e9ddfc X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-24 21:39:02 PST From: "Timothy H. Buchman" <tbuchmanREMOVE(at)PLEASEcitycenter D O To r g> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fe92f22$1@newsgroups.borland.com> Subject: Re: increasing CLK_TCK Date: Thu, 25 Dec 2003 00:09:16 -0500 Lines: 28 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 NNTP-Posting-Host: 68.167.68.139 Message-ID: <3fea7231$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1072329265 68.167.68.139 (24 Dec 2003 21:14:25 -0700) 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