|
@@ -36,16 +36,24 @@ struct curltime {
|
|
|
struct curltime Curl_now(void);
|
|
|
|
|
|
/*
|
|
|
- * Make sure that the first argument (t1) is the more recent time and t2 is
|
|
|
- * the older time, as otherwise you get a weird negative time-diff back...
|
|
|
+ * Make sure that the first argument (newer) is the more recent time and older
|
|
|
+ * is the older time, as otherwise you get a weird negative time-diff back...
|
|
|
*
|
|
|
* Returns: the time difference in number of milliseconds.
|
|
|
*/
|
|
|
-timediff_t Curl_timediff(struct curltime t1, struct curltime t2);
|
|
|
+timediff_t Curl_timediff(struct curltime newer, struct curltime older);
|
|
|
|
|
|
/*
|
|
|
- * Make sure that the first argument (t1) is the more recent time and t2 is
|
|
|
- * the older time, as otherwise you get a weird negative time-diff back...
|
|
|
+ * Make sure that the first argument (newer) is the more recent time and older
|
|
|
+ * is the older time, as otherwise you get a weird negative time-diff back...
|
|
|
+ *
|
|
|
+ * Returns: the time difference in number of milliseconds, rounded up.
|
|
|
+ */
|
|
|
+timediff_t Curl_timediff_ceil(struct curltime newer, struct curltime older);
|
|
|
+
|
|
|
+/*
|
|
|
+ * Make sure that the first argument (newer) is the more recent time and older
|
|
|
+ * is the older time, as otherwise you get a weird negative time-diff back...
|
|
|
*
|
|
|
* Returns: the time difference in number of microseconds.
|
|
|
*/
|