/external/ltp/testcases/realtime/func/measurement/ |
D | rdtsc-latency.c | 74 unsigned long long tv_minus(struct timeval *tv_start, struct timeval *tv_end) in tv_minus() argument 77 nsecs = (tv_end->tv_sec - tv_start->tv_sec) * 1000000000ULL; in tv_minus() 78 nsecs += (tv_end->tv_usec - tv_start->tv_usec) * 1000; in tv_minus() 85 struct timeval tv_start; in tsc_period_ps() local 90 gettimeofday(&tv_start, NULL); in tsc_period_ps() 95 return (1000 * tv_minus(&tv_start, &tv_end)) / tsc_minus(tsc_start, in tsc_period_ps()
|
/external/linux-kselftest/tools/testing/selftests/powerpc/benchmarks/ |
D | gettimeofday.c | 15 struct timeval tv_start, tv_end; in test_gettimeofday() local 17 gettimeofday(&tv_start, NULL); in test_gettimeofday() 23 …printf("time = %.6f\n", tv_end.tv_sec - tv_start.tv_sec + (tv_end.tv_usec - tv_start.tv_usec) * 1e… in test_gettimeofday()
|
D | null_syscall.c | 132 struct timespec tv_start, tv_now; in main() local 137 clock_gettime(CLOCK_MONOTONIC, &tv_start); in main() 145 elapsed_ns = (tv_now.tv_sec - tv_start.tv_sec) * 1000000000ULL + in main() 146 (tv_now.tv_nsec - tv_start.tv_nsec); in main()
|
/external/ltp/testcases/kernel/device-drivers/cpufreq/ |
D | cpufreq_boost.c | 142 struct timespec tv_start, tv_end; in load_cpu() local 147 clock_gettime(CLOCK_MONOTONIC_RAW, &tv_start); in load_cpu() 156 total_time_ms = (tv_end.tv_sec - tv_start.tv_sec) * 1000 + in load_cpu() 157 (tv_end.tv_nsec - tv_start.tv_nsec) / 1000000; in load_cpu()
|
/external/libusb/examples/ |
D | sam3u_benchmark.c | 45 static struct timeval tv_start; variable 136 get_timestamp(&tv_start); in benchmark_in() 162 diff_msec = (tv_stop.tv_sec - tv_start.tv_sec) * 1000L; in measure() 163 diff_msec += (tv_stop.tv_usec - tv_start.tv_usec) / 1000L; in measure()
|
/external/ltp/testcases/kernel/io/disktest/ |
D | timer.c | 233 struct timeval tv_start; variable 238 gettimeofday(&tv_start, NULL); in setStartTime() 248 return (tv_end.tv_usec - tv_start.tv_usec); in getTimeDiff()
|
/external/mdnsresponder/mDNSPosix/ |
D | NetMonitor.c | 128 struct timeval tv_start, tv_end, tv_interval; variable 836 gettimeofday(&tv_start, NULL); in mDNSNetMonitor() 865 if (tv_start.tv_usec > tv_interval.tv_usec) in mDNSNetMonitor() 867 tv_interval.tv_sec -= tv_start.tv_sec; in mDNSNetMonitor() 868 tv_interval.tv_usec -= tv_start.tv_usec; in mDNSNetMonitor() 885 localtime_r((time_t*)&tv_start.tv_sec, &tm); in mDNSNetMonitor() 886 mprintf("Started %3d:%02d:%02d.%06d\n", tm.tm_hour, tm.tm_min, tm.tm_sec, tv_start.tv_usec); in mDNSNetMonitor()
|
/external/autotest/client/tests/dbench/ |
D | dbench_startup.patch | 69 tv_start = timeval_current();
|
/external/libevent/test/ |
D | regress_rpc.c | 740 struct timeval tv_start, tv_end; in rpc_test() local 763 evutil_gettimeofday(&tv_start, NULL); in rpc_test() 802 evutil_timersub(&tv_end, &tv_start, &tv_end); in rpc_test()
|
D | regress.c | 1032 struct timeval tv_start, tv_end; in del_wait_thread() local 1034 evutil_gettimeofday(&tv_start, NULL); in del_wait_thread() 1038 test_timeval_diff_eq(&tv_start, &tv_end, 300); in del_wait_thread() 1076 struct timeval tv_start, tv_end; in test_del_wait() local 1077 evutil_gettimeofday(&tv_start, NULL); in test_del_wait() 1080 test_timeval_diff_eq(&tv_start, &tv_end, 270); in test_del_wait() 2036 struct timeval tv, tv_start, tv_end; in test_loopexit() local 2050 evutil_gettimeofday(&tv_start, NULL); in test_loopexit() 2059 test_timeval_diff_eq(&tv_start, &tv_end, 300); in test_loopexit() 2069 struct timeval tv, tv_start, tv_end; in test_loopexit_multiple() local [all …]
|
D | regress_http.c | 3109 struct timeval tv_start, tv_end; in http_incomplete_test_() local 3132 evutil_gettimeofday(&tv_start, NULL); in http_incomplete_test_() 3137 evutil_timersub(&tv_end, &tv_start, &tv_end); in http_incomplete_test_() 3325 struct timeval tv_start, tv_end; in http_chunk_out_test_impl() local 3351 evutil_gettimeofday(&tv_start, NULL); in http_chunk_out_test_impl() 3359 evutil_timersub(&tv_end, &tv_start, &tv_end); in http_chunk_out_test_impl() 3719 struct timeval tv, tv_start, tv_end; in http_connection_retry_test_basic() local 3756 evutil_gettimeofday(&tv_start, NULL); in http_connection_retry_test_basic() 3759 evutil_timersub(&tv_end, &tv_start, &tv_end); in http_connection_retry_test_basic() 3791 evutil_gettimeofday(&tv_start, NULL); in http_connection_retry_test_basic() [all …]
|