mirror of
https://github.com/curl/curl.git
synced 2026-08-24 20:23:40 +03:00
time: rename Curl_tvnow to Curl_now
... since the 'tv' stood for timeval and this function does not return a timeval struct anymore. Also, cleaned up the Curl_timediff*() functions to avoid typecasts and clean up the descriptive comments. Closes #2011
This commit is contained in:
parent
1d72b5b891
commit
5d543fe906
23 changed files with 73 additions and 83 deletions
|
|
@ -30,13 +30,12 @@ typedef int timediff_t;
|
|||
typedef ssize_t timediff_t;
|
||||
#endif
|
||||
|
||||
|
||||
struct curltime {
|
||||
time_t tv_sec; /* seconds */
|
||||
int tv_usec; /* microseconds */
|
||||
};
|
||||
|
||||
struct curltime Curl_tvnow(void);
|
||||
struct curltime Curl_now(void);
|
||||
|
||||
/*
|
||||
* Make sure that the first argument (t1) is the more recent time and t2 is
|
||||
|
|
@ -55,4 +54,3 @@ timediff_t Curl_timediff(struct curltime t1, struct curltime t2);
|
|||
timediff_t Curl_timediff_us(struct curltime newer, struct curltime older);
|
||||
|
||||
#endif /* HEADER_CURL_TIMEVAL_H */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue