diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-04-09 09:36:31 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-04-09 09:36:31 +0000 |
commit | 2fd463e979ca57c07be4c54e945c33de8651c17c (patch) | |
tree | fabfe5f019682c002eb3d83d3df50af9ffbe7c5c /lib/timeval.h | |
parent | de8660a96a8dca55f2a8c194a997fe50bba5864b (diff) | |
download | curl-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.h | 9 |
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 |