Loading lib/timeval.c +7 −3 Original line number Diff line number Diff line Loading @@ -78,6 +78,7 @@ static int gettimeofday(struct timeval *tp, void *nothing) #endif /* WIN32 */ #endif /* HAVE_GETTIMEOFDAY */ /* Return the current time in a timeval struct */ struct timeval Curl_tvnow(void) { struct timeval now; Loading @@ -88,6 +89,8 @@ struct timeval Curl_tvnow (void) /* * Make sure that the first argument is the more recent time, as otherwise * we'll get a weird negative time-diff back... * * Returns: the time difference in number of milliseconds. */ long Curl_tvdiff(struct timeval newer, struct timeval older) { Loading @@ -95,6 +98,7 @@ long Curl_tvdiff (struct timeval newer, struct timeval older) (499+newer.tv_usec-older.tv_usec)/1000; } /* return the number of seconds in the given input timeval struct */ long Curl_tvlong(struct timeval t1) { return t1.tv_sec; Loading Loading
lib/timeval.c +7 −3 Original line number Diff line number Diff line Loading @@ -78,6 +78,7 @@ static int gettimeofday(struct timeval *tp, void *nothing) #endif /* WIN32 */ #endif /* HAVE_GETTIMEOFDAY */ /* Return the current time in a timeval struct */ struct timeval Curl_tvnow(void) { struct timeval now; Loading @@ -88,6 +89,8 @@ struct timeval Curl_tvnow (void) /* * Make sure that the first argument is the more recent time, as otherwise * we'll get a weird negative time-diff back... * * Returns: the time difference in number of milliseconds. */ long Curl_tvdiff(struct timeval newer, struct timeval older) { Loading @@ -95,6 +98,7 @@ long Curl_tvdiff (struct timeval newer, struct timeval older) (499+newer.tv_usec-older.tv_usec)/1000; } /* return the number of seconds in the given input timeval struct */ long Curl_tvlong(struct timeval t1) { return t1.tv_sec; Loading