cURL / Mailing Lists / curl-library / Single Mail

curl-library

Porting curlx_tvnow

From: Vladimir Grishchenko <vladgri_at_hotmail.com>
Date: Fri, 19 Aug 2011 11:24:03 -0700

We can only get current time on our platform to the second precision, but there is a higher resolution system tick counter available. Looks like libcurl is using system ticks on Win32, does that mean that libcurl never needs actual current time (for like writing it out to headers or such) but only a monotonically increasing value? We are currently using the 1sec resolution clock for the curlx_tvnow port and it looks like switching to system ticks should be safe given its value doesn't wrap too often? Wondering if there will be any benefit of using higher-precision clock apart from getting more precise timing metrics?

Thanks,
Vladimir
                                               

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-08-19