Dirk Manske increased the resolution for what the CURLINFO_*_TIME return.

This commit is contained in:
Daniel Stenberg
2004-04-09 09:36:31 +00:00
parent de8660a96a
commit 2fd463e979
3 changed files with 27 additions and 7 deletions

View File

@@ -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