/third_party/node/deps/base64/base64/test/ |
H A D | benchmark.c | 175 float timediff, fastest = -1.0f; in codec_bench_enc() local 191 timediff = timediff_sec(&start, &end) / bs->batch; in codec_bench_enc() 194 if (fastest < 0.0f || timediff < fastest) in codec_bench_enc() 195 fastest = timediff; in codec_bench_enc() 204 float timediff, fastest = -1.0f; in codec_bench_dec() local 220 timediff = timediff_sec(&start, &end) / bs->batch; in codec_bench_dec() 223 if (fastest < 0.0f || timediff < fastest) in codec_bench_dec() 224 fastest = timediff; in codec_bench_dec()
|
/kernel/linux/linux-5.10/tools/power/cpupower/utils/idle_monitor/ |
H A D | cpuidle_sysfs.c | 23 static unsigned long long timediff; variable 31 cpuidle_cstates[id].name, timediff, *percent, cpu); in cpuidle_get_count_percent() 33 if (timediff == 0) in cpuidle_get_count_percent() 36 *percent = ((100.0 * statediff) / timediff); in cpuidle_get_count_percent() 38 dprint("%s: - timediff: %llu - statediff: %llu - percent: %f (%u)\n", in cpuidle_get_count_percent() 39 cpuidle_cstates[id].name, timediff, statediff, *percent, cpu); in cpuidle_get_count_percent() 65 timediff = timespec_diff_us(start_time, end_time); in cpuidle_stop()
|
H A D | amd_fam14h_idle.c | 86 static unsigned long long timediff; variable 217 if (timediff == 0) in fam14h_get_count_percent() 220 *percent = 100.0 * diff / timediff / 12.5; in fam14h_get_count_percent() 223 timediff, diff * 10 / 125, *percent); in fam14h_get_count_percent() 261 timediff = timespec_diff_us(start_time, end_time); in amd_fam14h_stop() 262 if (timediff / 1000 > OVERFLOW_MS) in amd_fam14h_stop() 263 print_overflow_err((unsigned int)timediff / 1000000, in amd_fam14h_stop()
|
H A D | mperf_monitor.c | 160 unsigned long long timediff; in mperf_get_count_percent() local 177 timediff = max_frequency * timespec_diff_us(time_start, time_end); in mperf_get_count_percent() 178 *percent = 100.0 * mperf_diff / timediff; in mperf_get_count_percent() 180 mperf_cstates[id].name, mperf_diff, timediff); in mperf_get_count_percent()
|
H A D | cpupower-monitor.c | 285 unsigned long long timediff; in fork_it() local 316 timediff = timespec_diff_us(start, end); in fork_it() 319 argv[0], timediff / (1000.0 * 1000), in fork_it()
|
/kernel/linux/linux-6.6/tools/power/cpupower/utils/idle_monitor/ |
H A D | cpuidle_sysfs.c | 23 static unsigned long long timediff; variable 31 cpuidle_cstates[id].name, timediff, *percent, cpu); in cpuidle_get_count_percent() 33 if (timediff == 0) in cpuidle_get_count_percent() 36 *percent = ((100.0 * statediff) / timediff); in cpuidle_get_count_percent() 38 dprint("%s: - timediff: %llu - statediff: %llu - percent: %f (%u)\n", in cpuidle_get_count_percent() 39 cpuidle_cstates[id].name, timediff, statediff, *percent, cpu); in cpuidle_get_count_percent() 65 timediff = timespec_diff_us(start_time, end_time); in cpuidle_stop()
|
H A D | amd_fam14h_idle.c | 86 static unsigned long long timediff; variable 217 if (timediff == 0) in fam14h_get_count_percent() 220 *percent = 100.0 * diff / timediff / 12.5; in fam14h_get_count_percent() 223 timediff, diff * 10 / 125, *percent); in fam14h_get_count_percent() 261 timediff = timespec_diff_us(start_time, end_time); in amd_fam14h_stop() 262 if (timediff / 1000 > OVERFLOW_MS) in amd_fam14h_stop() 263 print_overflow_err((unsigned int)timediff / 1000000, in amd_fam14h_stop()
|
H A D | mperf_monitor.c | 160 unsigned long long timediff; in mperf_get_count_percent() local 177 timediff = max_frequency * timespec_diff_us(time_start, time_end); in mperf_get_count_percent() 178 *percent = 100.0 * mperf_diff / timediff; in mperf_get_count_percent() 180 mperf_cstates[id].name, mperf_diff, timediff); in mperf_get_count_percent()
|
H A D | cpupower-monitor.c | 285 unsigned long long timediff; in fork_it() local 316 timediff = timespec_diff_us(start, end); in fork_it() 319 argv[0], timediff / (1000.0 * 1000), in fork_it()
|
/kernel/linux/linux-5.10/drivers/net/hamradio/ |
H A D | baycom_ser_fdx.c | 193 int timediff; in ser12_rx() local 198 timediff = 1000000 + ts->tv_nsec / NSEC_PER_USEC - in ser12_rx() 200 while (timediff >= 500000) in ser12_rx() 201 timediff -= 1000000; in ser12_rx() 202 while (timediff >= bdus2) { in ser12_rx() 203 timediff -= bc->baud_us; in ser12_rx() 228 if (timediff > 0) in ser12_rx() 233 if (abs(timediff) > bdus4) in ser12_rx() 238 bc->debug_vals.cur_pllcorr = timediff; in ser12_rx()
|
/kernel/linux/linux-6.6/drivers/net/hamradio/ |
H A D | baycom_ser_fdx.c | 193 int timediff; in ser12_rx() local 198 timediff = 1000000 + ts->tv_nsec / NSEC_PER_USEC - in ser12_rx() 200 while (timediff >= 500000) in ser12_rx() 201 timediff -= 1000000; in ser12_rx() 202 while (timediff >= bdus2) { in ser12_rx() 203 timediff -= bc->baud_us; in ser12_rx() 228 if (timediff > 0) in ser12_rx() 233 if (abs(timediff) > bdus4) in ser12_rx() 238 bc->debug_vals.cur_pllcorr = timediff; in ser12_rx()
|
/third_party/alsa-lib/test/ |
H A D | audio_time.c | 53 long long timediff(snd_htimestamp_t t1, snd_htimestamp_t t2) in timediff() function 394 timediff(tstamp_c, trigger_tstamp_c), in main() 396 timediff(tstamp_c, trigger_tstamp_c) - timestamp2ns(audio_tstamp_c), audio_tstamp_report_c.accuracy in main() 436 timediff(tstamp_p, trigger_tstamp_p), in main() 438 timediff(tstamp_p, trigger_tstamp_p) - timestamp2ns(audio_tstamp_p), audio_tstamp_report_p.accuracy in main()
|
H A D | midiloop.c | 25 long long timediff(struct timeval t1, struct timeval t2) in timediff() function 177 diff = timediff(end, start); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/functional/threads/condvar/ |
H A D | pthread_cond_wait_2.c | 46 static float timediff(struct timespec t2, struct timespec t1) in timediff() function 100 if (timediff(current_time, start_time) > RUNTIME) in low_prio_thread()
|
H A D | pthread_cond_wait_1.c | 46 static float timediff(struct timespec t2, struct timespec t1) in timediff() function 100 if (timediff(current_time, start_time) > RUNTIME) in low_prio_thread()
|
/third_party/ltp/testcases/open_posix_testsuite/functional/threads/schedule/ |
H A D | 1-1.c | 43 static float timediff(struct timespec t2, struct timespec t1) in timediff() function 103 if (timediff(current_timespec, start_timespec) > RUNTIME) in low_prio_thread()
|
H A D | 1-2.c | 44 static float timediff(struct timespec t2, struct timespec t1) in timediff() function 103 if (timediff(current_time, start_time) > RUNTIME) in low_prio_thread()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | fin_ack_lat.c | 17 static unsigned long timediff(struct timeval s, struct timeval e) in timediff() function 69 lat = timediff(start, end); in client()
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | fin_ack_lat.c | 17 static unsigned long timediff(struct timeval s, struct timeval e) in timediff() function 69 lat = timediff(start, end); in client()
|
/third_party/curl/tests/server/ |
H A D | util.h | 30 long timediff(struct timeval newer, struct timeval older);
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
H A D | time.c | 622 int64_t timediff; in stp_check_leap() local 641 timediff = tod_to_ns(lsoib->nlsout - get_tod_clock()) / NSEC_PER_SEC; in stp_check_leap() 649 if (timediff < 0) { in stp_check_leap() 652 } else if (timediff < 7200) { in stp_check_leap()
|
/kernel/linux/linux-6.6/arch/s390/kernel/ |
H A D | time.c | 614 int64_t timediff; in stp_check_leap() local 633 timediff = tod_to_ns(lsoib->nlsout - get_tod_clock()) / NSEC_PER_SEC; in stp_check_leap() 641 if (timediff < 0) { in stp_check_leap() 644 } else if (timediff < 7200) { in stp_check_leap()
|
/third_party/curl/lib/ |
H A D | asyn-ares.c | 61 #include "timediff.h" 504 timediff_t timediff = Curl_timediff(now2, now); /* spent time */ in Curl_resolver_wait_resolv() local 505 if(timediff <= 0) in Curl_resolver_wait_resolv() 507 else if(timediff > timeout) in Curl_resolver_wait_resolv() 510 timeout -= timediff; in Curl_resolver_wait_resolv()
|
H A D | easy.c | 617 timediff_t timediff = Curl_timediff(after, before); in wait_or_timeout() local 618 if(timediff > 0) { in wait_or_timeout() 619 if(timediff > ev->ms) in wait_or_timeout() 622 ev->ms -= (long)timediff; in wait_or_timeout()
|
/third_party/curl/tests/libtest/ |
H A D | test.h | 444 long timediff = tutil_tvdiff(tutil_tvnow(), tv_test_start); \ 445 if(timediff > (TEST_HANG_TIMEOUT)) { \ 448 (Y), (Z), timediff, (long) (TEST_HANG_TIMEOUT)); \
|