Skip to content
Snippets Groups Projects
Commit f0fa8588 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

added comment to the tvdiff

parent 32986305
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment