/external/linux-kselftest/tools/testing/selftests/powerpc/benchmarks/ |
gettimeofday.c | 15 struct timeval tv_start, tv_end; local 17 gettimeofday(&tv_start, NULL); 23 printf("time = %.6f\n", tv_end.tv_sec - tv_start.tv_sec + (tv_end.tv_usec - tv_start.tv_usec) * 1e-6);
|
null_syscall.c | 136 struct timespec tv_start, tv_now; local 141 clock_gettime(CLOCK_MONOTONIC, &tv_start); 149 elapsed_ns = (tv_now.tv_sec - tv_start.tv_sec) * 1000000000ULL + 150 (tv_now.tv_nsec - tv_start.tv_nsec);
|
/external/ltp/testcases/realtime/func/measurement/ |
rdtsc-latency.c | 74 unsigned long long tv_minus(struct timeval *tv_start, struct timeval *tv_end) 77 nsecs = (tv_end->tv_sec - tv_start->tv_sec) * 1000000000ULL; 78 nsecs += (tv_end->tv_usec - tv_start->tv_usec) * 1000; 85 struct timeval tv_start; local 90 gettimeofday(&tv_start, NULL); 95 return (1000 * tv_minus(&tv_start, &tv_end)) / tsc_minus(tsc_start,
|
/external/ltp/testcases/kernel/device-drivers/cpufreq/ |
cpufreq_boost.c | 118 struct timespec tv_start, tv_end; local 123 clock_gettime(CLOCK_MONOTONIC_RAW, &tv_start); 132 total_time_ms = (tv_end.tv_sec - tv_start.tv_sec) * 1000 + 133 (tv_end.tv_nsec - tv_start.tv_nsec) / 1000000;
|
/external/libusb/examples/ |
sam3u_benchmark.c | 41 static struct timeval tv_start; variable in typeref:struct:timeval 106 gettimeofday(&tv_start, NULL); 132 diff_msec = (tv_stop.tv_sec - tv_start.tv_sec)*1000; 133 diff_msec += (tv_stop.tv_usec - tv_start.tv_usec)/1000;
|
/external/ltp/testcases/kernel/io/disktest/ |
timer.c | 233 struct timeval tv_start; variable in typeref:struct:timeval 238 gettimeofday(&tv_start, NULL); 248 return (tv_end.tv_usec - tv_start.tv_usec);
|
/external/mdnsresponder/mDNSPosix/ |
NetMonitor.c | 128 struct timeval tv_start, tv_end, tv_interval; variable in typeref:struct:timeval 836 gettimeofday(&tv_start, NULL); 865 if (tv_start.tv_usec > tv_interval.tv_usec) 867 tv_interval.tv_sec -= tv_start.tv_sec; 868 tv_interval.tv_usec -= tv_start.tv_usec; 885 localtime_r((time_t*)&tv_start.tv_sec, &tm); 886 mprintf("Started %3d:%02d:%02d.%06d\n", tm.tm_hour, tm.tm_min, tm.tm_sec, tv_start.tv_usec); [all...] |
/hardware/intel/common/omx-components/videocodec/ |
OMXVideoDecoderVP9Hybrid.cpp | 365 struct timeval tv_start, tv_end; local 367 gettimeofday(&tv_start,NULL); 397 time_ms = (int32_t)(tv_end.tv_sec - tv_start.tv_sec) * 1000 + (int32_t)(tv_end.tv_usec - tv_start.tv_usec)/1000;
|