Searched refs:tv_end (Results 1 – 2 of 2) sorted by relevance
75 unsigned long long tv_minus(struct timeval *tv_start, struct timeval *tv_end) in tv_minus() argument78 nsecs = (tv_end->tv_sec - tv_start->tv_sec) * 1000000000ULL; in tv_minus()79 nsecs += (tv_end->tv_usec - tv_start->tv_usec) * 1000; in tv_minus()87 struct timeval tv_end; in tsc_period_ps() local94 gettimeofday(&tv_end, NULL); in tsc_period_ps()96 return (1000 * tv_minus(&tv_start, &tv_end)) / tsc_minus(tsc_start, in tsc_period_ps()
145 struct timespec tv_start, tv_end; in load_cpu() local157 clock_gettime(CLOCK_MONOTONIC_RAW, &tv_end); in load_cpu()159 total_time_ms = (tv_end.tv_sec - tv_start.tv_sec) * 1000 + in load_cpu()160 (tv_end.tv_nsec - tv_start.tv_nsec) / 1000000; in load_cpu()