/third_party/ltp/testcases/kernel/io/aio/ |
H A D | aio01.c | 99 int i, j, sec, usec; in main() local 147 usec = etv.tv_usec - stv.tv_usec; in main() 148 if (usec < 0) { in main() 149 usec += 1000000; in main() 153 nr, sec, usec); in main() 178 usec = etv.tv_usec - stv.tv_usec; in main() 179 if (usec < 0) { in main() 180 usec += 1000000; in main() 184 nr, sec, usec); in main() 209 usec in main() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
H A D | os.h | 16 * os_sleep - Sleep (sec, usec) 18 * @usec: Number of microseconds to sleep 20 void os_sleep(os_time_t sec, os_time_t usec); 24 os_time_t usec; member 29 os_time_t usec; member 33 * os_get_time - Get current time (sec, usec) 40 * os_get_reltime - Get relative time (sec, usec) 52 (a->sec == b->sec && a->usec < b->usec); in os_time_before() 60 res->usec in os_time_sub() [all...] |
H A D | os_win32.c | 17 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument 21 if (usec) in os_sleep() 22 Sleep(usec / 1000); in os_sleep() 45 t->usec = (os_time_t) (tt % 1000000); in os_get_time() 57 t->usec = now.usec; in os_get_reltime()
|
H A D | eloop.c | 870 timeout->time.usec += usecs; in eloop_register_timeout() 871 while (timeout->time.usec >= 1000000) { in eloop_register_timeout() 873 timeout->time.usec -= 1000000; in eloop_register_timeout() 951 remaining->sec = remaining->usec = 0; in eloop_cancel_timeout_one() 1005 requested.usec = req_usecs; in eloop_deplete_timeout() 1012 requested.usec, in eloop_deplete_timeout() 1037 requested.usec = req_usecs; in eloop_replenish_timeout() 1044 requested.usec, in eloop_replenish_timeout() 1217 tv.sec = tv.usec = 0; in eloop_run() 1219 timeout_ms = tv.sec * 1000 + tv.usec / 100 in eloop_run() 1364 int sec, usec; eloop_destroy() local [all...] |
H A D | eloop_win.c | 263 timeout->time.usec += usecs; in eloop_register_timeout() 264 while (timeout->time.usec >= 1000000) { in eloop_register_timeout() 266 timeout->time.usec -= 1000000; in eloop_register_timeout() 323 remaining->sec = remaining->usec = 0; in eloop_cancel_timeout_one() 369 requested.usec = req_usecs; in eloop_deplete_timeout() 376 requested.usec, in eloop_deplete_timeout() 401 requested.usec = req_usecs; in eloop_replenish_timeout() 408 requested.usec, in eloop_replenish_timeout() 543 tv.sec = tv.usec = 0; in eloop_run() 563 timeout_val = tv.sec * 1000 + tv.usec / 100 in eloop_run() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
H A D | os.h | 16 * os_sleep - Sleep (sec, usec) 18 * @usec: Number of microseconds to sleep 20 void os_sleep(os_time_t sec, os_time_t usec); 24 os_time_t usec; member 29 os_time_t usec; member 33 * os_get_time - Get current time (sec, usec) 40 * os_get_reltime - Get relative time (sec, usec) 52 (a->sec == b->sec && a->usec < b->usec); in os_time_before() 60 res->usec in os_time_sub() [all...] |
H A D | os_win32.c | 17 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument 21 if (usec) in os_sleep() 22 Sleep(usec / 1000); in os_sleep() 45 t->usec = (os_time_t) (tt % 1000000); in os_get_time() 57 t->usec = now.usec; in os_get_reltime()
|
H A D | eloop.c | 867 timeout->time.usec += usecs; in eloop_register_timeout() 868 while (timeout->time.usec >= 1000000) { in eloop_register_timeout() 870 timeout->time.usec -= 1000000; in eloop_register_timeout() 961 remaining->sec = remaining->usec = 0; in eloop_cancel_timeout_one() 1015 requested.usec = req_usecs; in eloop_deplete_timeout() 1022 requested.usec, in eloop_deplete_timeout() 1047 requested.usec = req_usecs; in eloop_replenish_timeout() 1054 requested.usec, in eloop_replenish_timeout() 1240 tv.sec = tv.usec = 0; in eloop_run() 1242 timeout_ms = tv.sec * 1000 + tv.usec / 100 in eloop_run() 1390 int sec, usec; eloop_destroy() local [all...] |
H A D | eloop_win.c | 263 timeout->time.usec += usecs; in eloop_register_timeout() 264 while (timeout->time.usec >= 1000000) { in eloop_register_timeout() 266 timeout->time.usec -= 1000000; in eloop_register_timeout() 323 remaining->sec = remaining->usec = 0; in eloop_cancel_timeout_one() 369 requested.usec = req_usecs; in eloop_deplete_timeout() 376 requested.usec, in eloop_deplete_timeout() 401 requested.usec = req_usecs; in eloop_replenish_timeout() 408 requested.usec, in eloop_replenish_timeout() 543 tv.sec = tv.usec = 0; in eloop_run() 563 timeout_val = tv.sec * 1000 + tv.usec / 100 in eloop_run() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
H A D | bss_load.c | 20 unsigned int *sec, unsigned int *usec) in get_bss_load_update_timeout() 36 *usec = (update_timeout % 1000) * 1024; in get_bss_load_update_timeout() 45 unsigned int sec, usec; in update_channel_utilization() local 60 if (get_bss_load_update_timeout(hapd, &sec, &usec) < 0) in update_channel_utilization() 78 eloop_register_timeout(sec, usec, update_channel_utilization, hapd, in update_channel_utilization() 85 unsigned int sec, usec; in bss_load_update_init() local 87 if (get_bss_load_update_timeout(hapd, &sec, &usec) < 0) in bss_load_update_init() 90 eloop_register_timeout(sec, usec, update_channel_utilization, hapd, in bss_load_update_init() 19 get_bss_load_update_timeout(struct hostapd_data *hapd, unsigned int *sec, unsigned int *usec) get_bss_load_update_timeout() argument
|
H A D | airtime_policy.c | 38 unsigned int *usec) in get_airtime_policy_update_timeout() 50 *usec = (update_int % 1000) * 1000; in get_airtime_policy_update_timeout() 61 sta->backlogged_until.usec += hapd->iconf->airtime_update_interval * in set_new_backlog_time() 63 while (sta->backlogged_until.usec >= 1000000) { in set_new_backlog_time() 65 sta->backlogged_until.usec -= 1000000; in set_new_backlog_time() 137 unsigned int sec, usec; in update_airtime_weights() local 222 if (get_airtime_policy_update_timeout(iface, &sec, &usec) < 0) in update_airtime_weights() 225 eloop_register_timeout(sec, usec, update_airtime_weights, iface, in update_airtime_weights() 257 unsigned int sec, usec; in airtime_policy_update_init() local 262 if (get_airtime_policy_update_timeout(iface, &sec, &usec) < in airtime_policy_update_init() 36 get_airtime_policy_update_timeout(struct hostapd_iface *iface, unsigned int *sec, unsigned int *usec) get_airtime_policy_update_timeout() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
H A D | bss_load.c | 20 unsigned int *sec, unsigned int *usec) in get_bss_load_update_timeout() 36 *usec = (update_timeout % 1000) * 1024; in get_bss_load_update_timeout() 45 unsigned int sec, usec; in update_channel_utilization() local 60 if (get_bss_load_update_timeout(hapd, &sec, &usec) < 0) in update_channel_utilization() 78 eloop_register_timeout(sec, usec, update_channel_utilization, hapd, in update_channel_utilization() 85 unsigned int sec, usec; in bss_load_update_init() local 87 if (get_bss_load_update_timeout(hapd, &sec, &usec) < 0) in bss_load_update_init() 90 eloop_register_timeout(sec, usec, update_channel_utilization, hapd, in bss_load_update_init() 19 get_bss_load_update_timeout(struct hostapd_data *hapd, unsigned int *sec, unsigned int *usec) get_bss_load_update_timeout() argument
|
H A D | airtime_policy.c | 38 unsigned int *usec) in get_airtime_policy_update_timeout() 50 *usec = (update_int % 1000) * 1000; in get_airtime_policy_update_timeout() 61 sta->backlogged_until.usec += hapd->iconf->airtime_update_interval * in set_new_backlog_time() 63 while (sta->backlogged_until.usec >= 1000000) { in set_new_backlog_time() 65 sta->backlogged_until.usec -= 1000000; in set_new_backlog_time() 133 unsigned int sec, usec; in update_airtime_weights() local 218 if (get_airtime_policy_update_timeout(iface, &sec, &usec) < 0) in update_airtime_weights() 221 eloop_register_timeout(sec, usec, update_airtime_weights, iface, in update_airtime_weights() 253 unsigned int sec, usec; in airtime_policy_update_init() local 258 if (get_airtime_policy_update_timeout(iface, &sec, &usec) < in airtime_policy_update_init() 36 get_airtime_policy_update_timeout(struct hostapd_iface *iface, unsigned int *sec, unsigned int *usec) get_airtime_policy_update_timeout() argument [all...] |
/third_party/libdrm/tests/ |
H A D | drmsl.c | 68 double usec; in do_time() local 98 usec = (double)(stop.tv_sec * 1000000 + stop.tv_usec in do_time() 101 printf("%0.2f microseconds for list length %d\n", usec, size); in do_time() 106 return usec; in do_time() 139 double usec, usec2, usec3, usec4; in main() local 170 usec = do_time(100, 10000); in main() 173 1000.0/100.0, usec2 / usec); in main() 177 10000.0/100.0, usec3 / usec); in main() 181 100000.0/100.0, usec4 / usec); in main()
|
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/ |
H A D | linux_hrtimer.c | 113 hrtimer->_softexpires.tv.usec) * HRTIMER_PERUS); in HrtimerHandlerRunAddNode() 143 timer._softexpires.tv.usec = hrtimer->_softexpires.tv.usec; in HrtimerHandlerRun() 190 (curHandler->_softexpires.tv.usec == timer->_softexpires.tv.usec)) { in GetHandlerNodePosition() 211 (curHandler->_softexpires.tv.usec == timer->_softexpires.tv.usec)) { in GetHrtimerNodePosition() 229 hrtimer->set_time_reload = (UINT32)((time.tv.sec * US_PER_SECOND + time.tv.usec) * HRTIMER_PERUS); in HrtimerListNodeInit() 278 curNode->set_time_reload = (UINT32)((time.tv.sec * US_PER_SECOND + time.tv.usec) * HRTIMER_PERUS); in ChangeNodePosition() 294 (curHandler->_softexpires.tv.usec in CancelHandlerNode() [all...] |
/third_party/ffmpeg/libavutil/ |
H A D | time.c | 84 int av_usleep(unsigned usec) in av_usleep() argument 87 struct timespec ts = { usec / 1000000, usec % 1000000 * 1000 }; in av_usleep() 91 return usleep(usec); in av_usleep() 93 Sleep(usec / 1000); in av_usleep()
|
/third_party/ltp/lib/ |
H A D | tst_timer_test.c | 22 static int (*sample)(int clk_id, long long usec); 254 void do_timer_test(long long usec, unsigned int nsamples) in do_timer_test() argument 259 long long threshold = compute_threshold(usec, keep_samples); in do_timer_test() 265 scall, usec, nsamples, 1.00 * threshold / (keep_samples)); in do_timer_test() 269 if (sample(CLOCK_MONOTONIC, usec)) { in do_timer_test() 279 for (i = 0; samples[i] > 10 * usec && i < (int)nsamples; i++) { in do_timer_test() 289 for (i = nsamples - 1; samples[i] < usec && i > -1; i--); in do_timer_test() 313 } else if (trunc_mean > (nsamples - discard) * usec + threshold) { in do_timer_test() 391 long long usec; member 405 do_timer_test(tcases[n].usec, tcase in timer_test_fn() [all...] |
H A D | tst_sig_proc.c | 14 pid_t create_sig_proc(int sig, int count, unsigned int usec) in create_sig_proc() argument 23 usleep(usec); in create_sig_proc()
|
/third_party/ltp/testcases/kernel/controllers/cgroup/ |
H A D | cgroup_regression_6_2.c | 23 int usec; in main() local 26 usec = atoi(argv[1]); in main() 28 usec = DEFAULT_USEC; in main() 31 usleep(usec); in main()
|
/third_party/eudev/src/shared/ |
H A D | time-util.c | 83 usec_t usec; in format_timespan() member 129 if (t < table[i].usec) in format_timespan() 135 a = t / table[i].usec; in format_timespan() 136 b = t % table[i].usec; in format_timespan() 144 for (cc = table[i].usec; cc > 1; cc /= 10) in format_timespan()
|
/third_party/pulseaudio/src/tests/ |
H A D | rtstutter.c | 76 uint64_t usec; in work() local 81 usec = in work() 85 pa_log_notice("CPU%i: Freezing for %ims", PA_PTR_TO_UINT(p), (int) (usec/PA_USEC_PER_MSEC)); in work() 88 pa_timeval_add(&end, usec); in work()
|
/third_party/libinput/tools/ |
H A D | libinput-replay.py | 163 e.usec, 174 for (sec, usec, evtype, evcode, value) in frame: 180 libevdev.evbit(evtype, evcode), value=value, sec=sec, usec=usec 219 evtime = evs[0].sec + evs[0].usec / 1e6 + offset 235 (sec, usec, *_) = evdev[0] 236 return sec + usec / 1.0e6
|
/third_party/ltp/testcases/kernel/syscalls/readahead/ |
H A D | readahead02.c | 150 * @usec: returns how many microsecond it took to go over fsize bytes 155 unsigned long *read_bytes, long long *usec, in read_testfile() 209 *usec = tst_timer_elapsed_us(); in read_testfile() 218 long long usec, usec_ra; in test_readahead() local 233 read_testfile(tc, 0, testfile, testfile_size, &read_bytes, &usec, in test_readahead() 242 read_testfile(tc, 0, testfile, testfile_size, &read_bytes, &usec, in test_readahead() 286 tst_res(TINFO, "read_testfile(0) took: %lli usec", usec); in test_readahead() 287 tst_res(TINFO, "read_testfile(1) took: %lli usec", usec_ra); in test_readahead() 327 * readahead02.c:285: TINFO: read_testfile(0) took: 26317623 usec in test_readahead() 153 read_testfile(struct tcase *tc, int do_readahead, const char *fname, size_t fsize, unsigned long *read_bytes, long long *usec, unsigned long *cached) read_testfile() argument [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/ |
H A D | 14-1.c | 180 unsigned long long usec_start, usec; in main_loop() local 217 usec = current_time_usec(); in main_loop() 218 } while ((usec - usec_start) < RUN_TIME_USEC); in main_loop() 221 output("Test finished after %lu usec.\n", usec - usec_start); in main_loop()
|
/third_party/ltp/testcases/kernel/syscalls/nanosleep/ |
H A D | nanosleep01.c | 17 int sample_fn(int clk_id, long long usec) in sample_fn() argument 19 struct timespec t = tst_timespec_from_us(usec); in sample_fn()
|