Dirk Manske increased the resolution for what the CURLINFO_*_TIME return.
This commit is contained in:
@@ -54,11 +54,20 @@ struct timeval curlx_tvnow(void);
|
||||
* Returns: the time difference in number of milliseconds.
|
||||
*/
|
||||
long curlx_tvdiff(struct timeval t1, struct timeval t2);
|
||||
|
||||
/*
|
||||
* Same as curlx_tvdiff but with full usec resolution.
|
||||
*
|
||||
* Returns: the time difference in seconds with subsecond resolution.
|
||||
*/
|
||||
double curlx_tvdiff_secs(struct timeval t1, struct timeval t2);
|
||||
|
||||
long Curl_tvlong(struct timeval t1);
|
||||
|
||||
/* These two defines below exist to provide the older API for library
|
||||
internals only. */
|
||||
#define Curl_tvnow() curlx_tvnow()
|
||||
#define Curl_tvdiff(x,y) curlx_tvdiff(x,y)
|
||||
#define Curl_tvdiff_secs(x,y) curlx_tvdiff_secs(x,y)
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user