Home
last modified time | relevance | path

Searched refs:tv_start (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()
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/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/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/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/autotest/client/tests/dbench/
Ddbench_startup.patch69 tv_start = timeval_current();