Lines Matching refs:tm2
58 profile_sub(proftime_T *tm, proftime_T *tm2) in profile_sub() argument
61 tm->QuadPart -= tm2->QuadPart; in profile_sub()
63 tm->tv_usec -= tm2->tv_usec; in profile_sub()
64 tm->tv_sec -= tm2->tv_sec; in profile_sub()
185 profile_divide(proftime_T *tm, int count, proftime_T *tm2) in profile_divide() argument
188 profile_zero(tm2); in profile_divide()
192 tm2->QuadPart = tm->QuadPart / count; in profile_divide()
196 tm2->tv_sec = floor(usec / 1000000.0); in profile_divide()
197 tm2->tv_usec = vim_round(usec - (tm2->tv_sec * 1000000.0)); in profile_divide()
213 profile_add(proftime_T *tm, proftime_T *tm2) in profile_add() argument
216 tm->QuadPart += tm2->QuadPart; in profile_add()
218 tm->tv_usec += tm2->tv_usec; in profile_add()
219 tm->tv_sec += tm2->tv_sec; in profile_add()
274 profile_equal(proftime_T *tm1, proftime_T *tm2) in profile_equal() argument
277 return (tm1->QuadPart == tm2->QuadPart); in profile_equal()
279 return (tm1->tv_usec == tm2->tv_usec && tm1->tv_sec == tm2->tv_sec); in profile_equal()
287 profile_cmp(const proftime_T *tm1, const proftime_T *tm2) in profile_cmp() argument
290 return (int)(tm2->QuadPart - tm1->QuadPart); in profile_cmp()
292 if (tm1->tv_sec == tm2->tv_sec) in profile_cmp()
293 return tm2->tv_usec - tm1->tv_usec; in profile_cmp()
294 return tm2->tv_sec - tm1->tv_sec; in profile_cmp()