mirror of
https://github.com/curl/curl.git
synced 2026-08-04 07:40:03 +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
|
|
@ -688,7 +688,7 @@ clean_up:
|
|||
the time we spent until now! */
|
||||
if(prev_alarm) {
|
||||
/* there was an alarm() set before us, now put it back */
|
||||
timediff_t elapsed_secs = Curl_timediff(Curl_tvnow(),
|
||||
timediff_t elapsed_secs = Curl_timediff(Curl_now(),
|
||||
conn->created) / 1000;
|
||||
|
||||
/* the alarm period is counted in even number of seconds */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue