Lines Matching refs:start
44 counter_diff (const LARGE_INTEGER * start, const LARGE_INTEGER * end) in counter_diff() argument
49 diff.QuadPart = end->QuadPart - start->QuadPart; in counter_diff()
57 LARGE_INTEGER start, end; in benchmark_function() local
60 QueryPerformanceCounter (&start) ; in benchmark_function()
67 return counter_diff (&start, &end) / count ; in benchmark_function()
75 counter_diff (const uint64_t * start, const uint64_t * end) in counter_diff() argument
79 uint64_t duration = *end - *start; in counter_diff()
87 uint64_t start, end; in benchmark_function() local
90 start = mach_absolute_time(); in benchmark_function()
97 return counter_diff (&start, &end) / count ; in benchmark_function()
106 timespec_diff (const struct timespec * start, const struct timespec * end) in timespec_diff() argument
109 if (end->tv_nsec - start->tv_nsec < 0) in timespec_diff()
110 { diff.tv_sec = end->tv_sec - start->tv_sec - 1 ; in timespec_diff()
111 diff.tv_nsec = 1000000000 + end->tv_nsec - start->tv_nsec ; in timespec_diff()
114 { diff.tv_sec = end->tv_sec - start->tv_sec ; in timespec_diff()
115 diff.tv_nsec = end->tv_nsec-start->tv_nsec ; in timespec_diff()
123 { struct timespec start, end; in benchmark_function() local
126 clock_gettime (CLOCK_PROCESS_CPUTIME_ID, &start) ; in benchmark_function()
133 return timespec_diff (&start, &end) / count ; in benchmark_function()
142 timeval_diff (const struct timeval * start, const struct timeval * end) in timeval_diff() argument
145 if (end->tv_usec - start->tv_usec < 0) in timeval_diff()
146 { diff.tv_sec = end->tv_sec - start->tv_sec - 1 ; in timeval_diff()
147 diff.tv_usec = 1000000 + end->tv_usec - start->tv_usec ; in timeval_diff()
150 { diff.tv_sec = end->tv_sec - start->tv_sec ; in timeval_diff()
151 diff.tv_usec = end->tv_usec-start->tv_usec ; in timeval_diff()
159 { struct timeval start, end; in benchmark_function() local
162 gettimeofday(&start, NULL); in benchmark_function()
169 return timeval_diff (&start, &end) / count ; in benchmark_function()