Lines Matching refs:diff
203 timediff_t diff = (timediff_t)newer.tv_sec-older.tv_sec; in Curl_timediff() local
204 if(diff >= (TIMEDIFF_T_MAX/1000)) in Curl_timediff()
206 else if(diff <= (TIMEDIFF_T_MIN/1000)) in Curl_timediff()
208 return diff * 1000 + (newer.tv_usec-older.tv_usec)/1000; in Curl_timediff()
217 timediff_t diff = (timediff_t)newer.tv_sec-older.tv_sec; in Curl_timediff_ceil() local
218 if(diff >= (TIMEDIFF_T_MAX/1000)) in Curl_timediff_ceil()
220 else if(diff <= (TIMEDIFF_T_MIN/1000)) in Curl_timediff_ceil()
222 return diff * 1000 + (newer.tv_usec - older.tv_usec + 999)/1000; in Curl_timediff_ceil()
231 timediff_t diff = (timediff_t)newer.tv_sec-older.tv_sec; in Curl_timediff_us() local
232 if(diff >= (TIMEDIFF_T_MAX/1000000)) in Curl_timediff_us()
234 else if(diff <= (TIMEDIFF_T_MIN/1000000)) in Curl_timediff_us()
236 return diff * 1000000 + newer.tv_usec-older.tv_usec; in Curl_timediff_us()