mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
added comment to the tvdiff
This commit is contained in:
parent
3298630500
commit
f0fa858885
@ -65,6 +65,10 @@ struct timeval Curl_tvnow (void)
|
||||
return now;
|
||||
}
|
||||
|
||||
/*
|
||||
* Make sure that the first argument is the more recent time, as otherwise
|
||||
* we'll get a weird negative time-diff back...
|
||||
*/
|
||||
double Curl_tvdiff (struct timeval t1, struct timeval t2)
|
||||
{
|
||||
return (double)(t1.tv_sec - t2.tv_sec) + ((t1.tv_usec-t2.tv_usec)/1000000.0);
|
||||
|
Loading…
Reference in New Issue
Block a user