summaryrefslogtreecommitdiff
path: root/lib/timeval.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-09 09:36:31 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-09 09:36:31 +0000
commit2fd463e979ca57c07be4c54e945c33de8651c17c (patch)
treefabfe5f019682c002eb3d83d3df50af9ffbe7c5c /lib/timeval.h
parentde8660a96a8dca55f2a8c194a997fe50bba5864b (diff)
downloadcurl-2fd463e979ca57c07be4c54e945c33de8651c17c.tar.gz
Dirk Manske increased the resolution for what the CURLINFO_*_TIME return.
Diffstat (limited to 'lib/timeval.h')
-rw-r--r--lib/timeval.h9
1 files changed, 9 insertions, 0 deletions
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