cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: GetTickCount vs QueryPerformanceCounter

From: Ragnar Lonn <ragnar_at_gatorhole.com>
Date: Wed, 26 May 2010 23:04:19 +0200

Daniel Stenberg wrote:
> On Thu, 20 May 2010, Igor Novoseltsev wrote:
>
>> The libcurl uses GetTickCount (called from curlx_tvnow) to track the
>> elapsed time.
>>
>> It is appears that the GetTickCount much less precise!
>
>> Is this possible to move the libcurl to use the
>> QueryPerformanceCounterd?
>
> I have no idea. I don't know much windows internals.
>
> If you mofify your libcurl build to use that instead, does it solve
> your problem? Are there any drawbacks in using that function? In what
> windows versions is QueryPerformanceCounterd available?

I have been using it in Windows 95, 98, NT, 2000 and XP. It seems to
exist in most moderately modern Windows systems, but read this first:
http://www.virtualdub.org/blog/pivot/entry.php?id=106

  /Ragnar

-- 
______________________________
Load Impact
Ragnar Lönn
Email: ragnar.lonn_at_loadimpact.com
Web: http://loadimpact.com
How many users can your website handle? - Test at: http://loadimpact.com
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-05-26