Home
last modified time | relevance | path

Searched refs:tv_start (Results 1 – 11 of 11) 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.c136 struct timespec tv_start, tv_now; in main() local
141 clock_gettime(CLOCK_MONOTONIC, &tv_start); in main()
149 elapsed_ns = (tv_now.tv_sec - tv_start.tv_sec) * 1000000000ULL + in main()
150 (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.c118 struct timespec tv_start, tv_end; in load_cpu() local
123 clock_gettime(CLOCK_MONOTONIC_RAW, &tv_start); in load_cpu()
132 total_time_ms = (tv_end.tv_sec - tv_start.tv_sec) * 1000 + in load_cpu()
133 (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/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/libevent/test/
Dregress.c976 struct timeval tv_start, tv_end; in del_wait_thread() local
978 evutil_gettimeofday(&tv_start, NULL); in del_wait_thread()
982 test_timeval_diff_eq(&tv_start, &tv_end, 300); in del_wait_thread()
1020 struct timeval tv_start, tv_end; in test_del_wait() local
1021 evutil_gettimeofday(&tv_start, NULL); in test_del_wait()
1024 test_timeval_diff_eq(&tv_start, &tv_end, 270); in test_del_wait()
1953 struct timeval tv, tv_start, tv_end; in test_loopexit() local
1967 evutil_gettimeofday(&tv_start, NULL); in test_loopexit()
1976 test_timeval_diff_eq(&tv_start, &tv_end, 300); in test_loopexit()
1986 struct timeval tv, tv_start, tv_end; in test_loopexit_multiple() local
[all …]
Dregress_rpc.c741 struct timeval tv_start, tv_end; in rpc_test() local
764 evutil_gettimeofday(&tv_start, NULL); in rpc_test()
803 evutil_timersub(&tv_end, &tv_start, &tv_end); in rpc_test()
Dregress_http.c3044 struct timeval tv_start, tv_end; in http_incomplete_test_() local
3067 evutil_gettimeofday(&tv_start, NULL); in http_incomplete_test_()
3072 evutil_timersub(&tv_end, &tv_start, &tv_end); in http_incomplete_test_()
3260 struct timeval tv_start, tv_end; in http_chunk_out_test_impl() local
3285 evutil_gettimeofday(&tv_start, NULL); in http_chunk_out_test_impl()
3292 evutil_timersub(&tv_end, &tv_start, &tv_end); in http_chunk_out_test_impl()
3652 struct timeval tv, tv_start, tv_end; in http_connection_retry_test_basic() local
3689 evutil_gettimeofday(&tv_start, NULL); in http_connection_retry_test_basic()
3692 evutil_timersub(&tv_end, &tv_start, &tv_end); in http_connection_retry_test_basic()
3724 evutil_gettimeofday(&tv_start, NULL); in http_connection_retry_test_basic()
[all …]
/external/autotest/client/tests/dbench/
Ddbench_startup.patch69 tv_start = timeval_current();