From 2fd463e979ca57c07be4c54e945c33de8651c17c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 9 Apr 2004 09:36:31 +0000 Subject: Dirk Manske increased the resolution for what the CURLINFO_*_TIME return. --- lib/timeval.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/timeval.h') diff --git a/lib/timeval.h b/lib/timeval.h index 39da52a6f..856f5f4f6 100644 --- a/lib/timeval.h +++ b/lib/timeval.h @@ -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 -- cgit v1.2.1