Home
last modified time | relevance | path

Searched refs:usec (Results 1 – 25 of 105) sorted by relevance

12345

/external/wpa_supplicant_8/src/utils/
Dos.h19 void os_sleep(os_time_t sec, os_time_t usec);
23 os_time_t usec; member
28 os_time_t usec; member
51 (a->sec == b->sec && a->usec < b->usec); in os_time_before()
59 res->usec = a->usec - b->usec; in os_time_sub()
60 if (res->usec < 0) { in os_time_sub()
62 res->usec += 1000000; in os_time_sub()
73 (a->sec == b->sec && a->usec < b->usec); in os_reltime_before()
81 res->usec = a->usec - b->usec; in os_reltime_sub()
82 if (res->usec < 0) { in os_reltime_sub()
[all …]
Dos_win32.c17 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()
Deloop.c788 timeout->time.usec += usecs; in eloop_register_timeout()
789 while (timeout->time.usec >= 1000000) { in eloop_register_timeout()
791 timeout->time.usec -= 1000000; in eloop_register_timeout()
853 remaining->sec = remaining->usec = 0; in eloop_cancel_timeout_one()
899 requested.usec = req_usecs; in eloop_deplete_timeout()
906 requested.usec, in eloop_deplete_timeout()
931 requested.usec = req_usecs; in eloop_replenish_timeout()
938 requested.usec, in eloop_replenish_timeout()
1108 tv.sec = tv.usec = 0; in eloop_run()
1110 timeout_ms = tv.sec * 1000 + tv.usec / 1000; in eloop_run()
[all …]
Deloop_win.c263 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 / 1000; in eloop_run()
Dos_internal.c26 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument
30 if (usec) in os_sleep()
31 usleep(usec); in os_sleep()
41 t->usec = tv.tv_usec; in os_get_time()
52 t->usec = tv.tv_usec; in os_get_reltime()
Dcommon.c236 u32 sec, usec; in wpa_get_ntp_timestamp() local
243 usec = now.usec; in wpa_get_ntp_timestamp()
244 usec = 4295 * usec - (usec >> 5) - (usec >> 9); in wpa_get_ntp_timestamp()
247 tmp = host_to_be32(usec); in wpa_get_ntp_timestamp()
/external/fio/
Dtime.c12 uint64_t usec_spin(unsigned int usec) in usec_spin() argument
18 while ((t = utime_since_now(&start)) < usec) in usec_spin()
24 uint64_t usec_sleep(struct thread_data *td, unsigned long usec) in usec_sleep() argument
31 unsigned long ts = usec; in usec_sleep()
33 if (usec < ns_granularity) { in usec_sleep()
34 t += usec_spin(usec); in usec_sleep()
38 ts = usec - ns_granularity; in usec_sleep()
54 if (ts >= usec) in usec_sleep()
57 usec -= ts; in usec_sleep()
Dgettime.c386 long sec, usec; in utime_since() local
390 usec = e->tv_usec - s->tv_usec; in utime_since()
391 if (sec > 0 && usec < 0) { in utime_since()
393 usec += 1000000; in utime_since()
399 if (sec < 0 || (sec == 0 && usec < 0)) in utime_since()
402 ret = sec * 1000000ULL + usec; in utime_since()
417 long sec, usec, ret; in mtime_since() local
420 usec = e->tv_usec - s->tv_usec; in mtime_since()
421 if (sec > 0 && usec < 0) { in mtime_since()
423 usec += 1000000; in mtime_since()
[all …]
/external/libdrm/tests/
Ddrmsl.c68 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()
127 double usec, usec2, usec3, usec4; in main() local
158 usec = do_time(100, 10000); in main()
161 1000.0/100.0, usec2 / usec); in main()
165 10000.0/100.0, usec3 / usec); in main()
169 100000.0/100.0, usec4 / usec); in main()
/external/wpa_supplicant_8/src/ap/
Dbss_load.c22 unsigned int sec, usec; in update_channel_utilization() local
37 usec = (hapd->bss_load_update_timeout % 1000) * 1024; in update_channel_utilization()
38 eloop_register_timeout(sec, usec, update_channel_utilization, hapd, in update_channel_utilization()
47 unsigned int sec, usec; in bss_load_update_init() local
55 usec = (hapd->bss_load_update_timeout % 1000) * 1024; in bss_load_update_init()
56 eloop_register_timeout(sec, usec, update_channel_utilization, hapd, in bss_load_update_init()
/external/tcpdump/
Dprint-timed.c99 long sec, usec; in timed_print() local
124 usec = EXTRACT_32BITS(&tsp->tsp_time.tv_usec); in timed_print()
126 if (usec < 0) in timed_print()
130 if (sec < 0 && usec != 0) { in timed_print()
134 usec = 1000000 - usec; in timed_print()
136 ND_PRINT((ndo, "%ld.%06ld", sec, usec)); in timed_print()
/external/ltrace/testsuite/ltrace.minor/
Dtime-record-T.exp67 if [ regexp {nanosleep.*<([0-9]+\.[0-9]+)>} $line match usec] then {
68 verbose "nanosleep_usec = $nanosleep_usec, usec = $usec"
70 if { $usec * 1000 >= $nanosleep_usec} then {
73 fail "Spent $usec inside call, but PUT call nanosleep($nanosleep_usec)!"
/external/autotest/client/site_tests/platform_TraceClockMonotonic/src/
Dftrace-clock-monotonic.c22 unsigned long usec; in write_marker() local
33 usec = ts.tv_nsec / 1000; in write_marker()
35 name, ts.tv_sec, usec); in write_marker()
/external/autotest/client/common_lib/
Dsmogcheck_util.py73 usec = 1000000 * t.seconds + t.microseconds
74 logging.info('Elapsed time = %d usec', usec)
75 return usec
Dsmogcheck_ttci.py197 usec = 1000000 * t.seconds + t.microseconds
198 logging.info('Elapsed time = %d usec', usec)
199 return usec
/external/libvncserver/examples/
Dcamera.c133 long usec; in main() local
151 usec = server->deferUpdateTime*1000; in main()
152 rfbProcessEvents(server,usec); in main()
/external/netperf/src/
Dnetcpu_pstat.c113 usec; in calibrate_idle_rate() local
168 usec = time2.tv_usec - time1.tv_usec; in calibrate_idle_rate()
169 elapsed = (float)sec + ((float)usec/(float)1000000.0); in calibrate_idle_rate()
173 fprintf(where,"\tsec = %ld usec = %ld\n",sec,usec); in calibrate_idle_rate()
Dnetcpu_perfstat.c130 usec; in calibrate_idle_rate() local
202 usec = time2.tv_usec - time1.tv_usec; in calibrate_idle_rate()
203 elapsed = (float)sec + ((float)usec/(float)1000000.0); in calibrate_idle_rate()
230 sec,usec, in calibrate_idle_rate()
Dnetcpu_kstat.c264 usec; in calibrate_idle_rate() local
301 usec = time2.tv_usec - time1.tv_usec; in calibrate_idle_rate()
302 elapsed = (float)sec + ((float)usec/(float)1000000.0); in calibrate_idle_rate()
306 fprintf(where,"\tsec = %ld usec = %ld\n",sec,usec); in calibrate_idle_rate()
/external/valgrind/none/tests/s390x/
Dtest.h56 static inline void mysleep(long sec, long usec) in mysleep() argument
61 tv.tv_usec = usec; in mysleep()
/external/avahi/avahi-core/
Dcache.c237 AvahiUsec usec, left, right; in next_expiry() local
244 usec = (AvahiUsec) e->record->ttl * 10000; in next_expiry()
246 left = usec * percent; in next_expiry()
247 right = usec * (percent+2); /* 2% jitter */ in next_expiry()
256 usec = left + (AvahiUsec) ((double) (right-left) * c->last_rand / (RAND_MAX+1.0)); in next_expiry()
259 avahi_timeval_add(&e->expiry, usec); in next_expiry()
/external/svox/pico/lib/
Dpicopal.c509 void picopal_get_timer(picopal_uint32 * sec, picopal_uint32 * usec) in picopal_get_timer() argument
516 *usec = USEC_PER_SEC * (dt % CLOCKS_PER_SEC) / CLOCKS_PER_SEC; in picopal_get_timer()
535 *usec = (unsigned int) ((double)USEC_PER_SEC * (dt / tf)) % USEC_PER_SEC; in picopal_get_timer()
541 *usec = 1000 * (dt % 1000); in picopal_get_timer()
546 *usec = 0; in picopal_get_timer()
/external/fio/crc/
Dtest.c315 uint64_t usec; in fio_crctest() local
332 usec = utime_since_now(&tv); in fio_crctest()
334 if (usec) { in fio_crctest()
335 mb_sec = (double) mb / (double) usec; in fio_crctest()
/external/wpa_supplicant_8/wpa_supplicant/
Dscan.h13 void wpa_supplicant_req_scan(struct wpa_supplicant *wpa_s, int sec, int usec);
15 int sec, int usec);
/external/avahi/avahi-common/
Dtimeval.c59 struct timeval* avahi_timeval_add(struct timeval *a, AvahiUsec usec) { in avahi_timeval_add() argument
63 u = usec + a->tv_usec; in avahi_timeval_add()

12345