Home
last modified time | relevance | path

Searched refs:tv_end (Results 1 – 8 of 8) 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()
86 struct timeval tv_end; in tsc_period_ps() local
93 gettimeofday(&tv_end, 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
20 gettimeofday(&tv_end, 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()
/external/ltp/testcases/kernel/device-drivers/cpufreq/
Dcpufreq_boost.c118 struct timespec tv_start, tv_end; in load_cpu() local
130 clock_gettime(CLOCK_MONOTONIC_RAW, &tv_end); 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.c234 struct timeval tv_end; variable
243 gettimeofday(&tv_end, NULL); in setEndTime()
248 return (tv_end.tv_usec - tv_start.tv_usec); in getTimeDiff()
/external/libevent/test/
Dregress_rpc.c741 struct timeval tv_start, tv_end; in rpc_test() local
802 evutil_gettimeofday(&tv_end, NULL); in rpc_test()
803 evutil_timersub(&tv_end, &tv_start, &tv_end); in rpc_test()
805 (float)tv_end.tv_sec/(float)i * 1000000.0 + in rpc_test()
806 tv_end.tv_usec / (float)i)); in rpc_test()
Dregress_http.c3044 struct timeval tv_start, tv_end; in http_incomplete_test_() local
3071 evutil_gettimeofday(&tv_end, NULL); in http_incomplete_test_()
3072 evutil_timersub(&tv_end, &tv_start, &tv_end); in http_incomplete_test_()
3082 if (use_timeout && tv_end.tv_sec >= 3) { in http_incomplete_test_()
3084 } else if (!use_timeout && tv_end.tv_sec >= 1) { in http_incomplete_test_()
3260 struct timeval tv_start, tv_end; in http_chunk_out_test_impl() local
3291 evutil_gettimeofday(&tv_end, NULL); in http_chunk_out_test_impl()
3292 evutil_timersub(&tv_end, &tv_start, &tv_end); in http_chunk_out_test_impl()
3294 tt_int_op(tv_end.tv_sec, <, 1); in http_chunk_out_test_impl()
3652 struct timeval tv, tv_start, tv_end; in http_connection_retry_test_basic() local
[all …]
Dregress.c976 struct timeval tv_start, tv_end; in del_wait_thread() local
980 evutil_gettimeofday(&tv_end, 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
1023 evutil_gettimeofday(&tv_end, 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
1969 evutil_gettimeofday(&tv_end, 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 …]
/external/mdnsresponder/mDNSPosix/
DNetMonitor.c128 struct timeval tv_start, tv_end, tv_interval; variable
863 gettimeofday(&tv_end, NULL); in mDNSNetMonitor()
864 tv_interval = tv_end; in mDNSNetMonitor()
887 localtime_r((time_t*)&tv_end.tv_sec, &tm); in mDNSNetMonitor()
888 mprintf("End %3d:%02d:%02d.%06d\n", tm.tm_hour, tm.tm_min, tm.tm_sec, tv_end.tv_usec); in mDNSNetMonitor()