Home
last modified time | relevance | path

Searched refs:tv_start (Results 1 – 12 of 12) sorted by relevance

/external/ltp/testcases/realtime/func/measurement/
Drdtsc-latency.c74 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/
Dgettimeofday.c15 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()
Dnull_syscall.c132 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/libusb/examples/
Dsam3u_benchmark.c41 static struct timeval tv_start; variable
106 gettimeofday(&tv_start, NULL); in benchmark_in()
132 diff_msec = (tv_stop.tv_sec - tv_start.tv_sec)*1000; in measure()
133 diff_msec += (tv_stop.tv_usec - tv_start.tv_usec)/1000; in measure()
/external/ltp/testcases/kernel/device-drivers/cpufreq/
Dcpufreq_boost.c142 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/ltp/testcases/kernel/io/disktest/
Dtimer.c233 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/elfutils/debuginfod/
Ddebuginfod.cxx1555 struct timeval tv_start, tv_end; in scan_source_file_path() local
1556 gettimeofday (&tv_start, NULL); in scan_source_file_path()
1807 double deltas = (tv_end.tv_sec - tv_start.tv_sec) + (tv_end.tv_usec - tv_start.tv_usec)*0.000001; in scan_source_file_path()
2060 struct timeval tv_start, tv_end; in scan_source_rpm_path() local
2061 gettimeofday (&tv_start, NULL); in scan_source_rpm_path()
2223 double deltas = (tv_end.tv_sec - tv_start.tv_sec) + (tv_end.tv_usec - tv_start.tv_usec)*0.000001; in scan_source_rpm_path()
2308 struct timeval tv_start, tv_end; in groom() local
2309 gettimeofday (&tv_start, NULL); in groom()
2363 double deltas = (tv_end.tv_sec - tv_start.tv_sec) + (tv_end.tv_usec - tv_start.tv_usec)*0.000001; in groom()
/external/mdnsresponder/mDNSPosix/
DNetMonitor.c128 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/
Ddbench_startup.patch69 tv_start = timeval_current();
/external/libevent/test/
Dregress.c985 struct timeval tv_start, tv_end; in del_wait_thread() local
987 evutil_gettimeofday(&tv_start, NULL); in del_wait_thread()
991 test_timeval_diff_eq(&tv_start, &tv_end, 300); in del_wait_thread()
1029 struct timeval tv_start, tv_end; in test_del_wait() local
1030 evutil_gettimeofday(&tv_start, NULL); in test_del_wait()
1033 test_timeval_diff_eq(&tv_start, &tv_end, 270); in test_del_wait()
1989 struct timeval tv, tv_start, tv_end; in test_loopexit() local
2003 evutil_gettimeofday(&tv_start, NULL); in test_loopexit()
2012 test_timeval_diff_eq(&tv_start, &tv_end, 300); in test_loopexit()
2022 struct timeval tv, tv_start, tv_end; in test_loopexit_multiple() local
[all …]
Dregress_rpc.c740 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()
Dregress_http.c3110 struct timeval tv_start, tv_end; in http_incomplete_test_() local
3133 evutil_gettimeofday(&tv_start, NULL); in http_incomplete_test_()
3138 evutil_timersub(&tv_end, &tv_start, &tv_end); in http_incomplete_test_()
3326 struct timeval tv_start, tv_end; in http_chunk_out_test_impl() local
3352 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()
3720 struct timeval tv, tv_start, tv_end; in http_connection_retry_test_basic() local
3757 evutil_gettimeofday(&tv_start, NULL); in http_connection_retry_test_basic()
3760 evutil_timersub(&tv_end, &tv_start, &tv_end); in http_connection_retry_test_basic()
3792 evutil_gettimeofday(&tv_start, NULL); in http_connection_retry_test_basic()
[all …]