curl-library
CURLINFO_TOTAL_TIME returning only integers
From: Steve McLaughlin <steve_at_fxmedia.com>
Date: Fri, 18 Jan 2002 21:48:25 -0500
Date: Fri, 18 Jan 2002 21:48:25 -0500
I am having a problem getting a floating-point CURLINFO_TOTAL_TIME back
after a curl action.
This code works fine on my old development machine (Pentium 200 MMX), and
does return good times with data to the right of the decimal place. However,
on my production server with twin PIII 667 MHz, it only returns integers,
usually 0, but sometimes 1 or other integers.
I cannot figure out why this is. Any help would be appreciated!
Here is the C code snippet:
...
double loadtime;
// Get the total time taken
curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &loadtime);
printf("loading %s took %f\n", fullurl, loadtime);
...
Thanks,
Steve
Received on 2002-01-19