Home
last modified time | relevance | path

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

12

/external/openssl/crypto/rand/
Drand_unix.c194 int usec = 10*1000; /* spend 10ms on each file */ in RAND_poll() local
222 if (poll(&pset, 1, usec / 1000) < 0) in RAND_poll()
223 usec = 0; in RAND_poll()
233 t.tv_usec = usec; in RAND_poll()
247 usec = t.tv_usec; in RAND_poll()
252 usec = 0; in RAND_poll()
271 if (usec == 10*1000) in RAND_poll()
272 usec = 0; in RAND_poll()
275 (errno == EINTR || errno == EAGAIN)) && usec != 0 && n < ENTROPY_NEEDED); in RAND_poll()
/external/tcpdump/
Dprint-timed.c51 long sec, usec; in timed_print() local
90 usec = EXTRACT_32BITS(&tsp->tsp_time.tv_usec); in timed_print()
91 if (usec < 0) in timed_print()
95 if (sec < 0 && usec != 0) { in timed_print()
99 usec = 1000000 - usec; in timed_print()
101 printf("%ld.%06ld", sec, usec); in timed_print()
/external/wpa_supplicant/
Dos.h25 void os_sleep(os_time_t sec, os_time_t usec);
29 os_time_t usec; member
44 ((a)->sec == (b)->sec && (a)->usec < (b)->usec))
48 (res)->usec = (a)->usec - (b)->usec; \
49 if ((res)->usec < 0) { \
51 (res)->usec += 1000000; \
Dcommon.c131 u32 sec, usec; in wpa_get_ntp_timestamp() local
137 usec = now.usec; in wpa_get_ntp_timestamp()
138 usec = host_to_be32(4295 * usec - (usec >> 5) - (usec >> 9)); in wpa_get_ntp_timestamp()
140 os_memcpy(buf + 4, (u8 *) &usec, 4); in wpa_get_ntp_timestamp()
181 (unsigned int) tv.usec); in wpa_debug_print_timestamp()
184 printf("%ld.%06u: ", (long) tv.sec, (unsigned int) tv.usec); in wpa_debug_print_timestamp()
Dos_win32.c21 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument
25 if (usec) in os_sleep()
26 Sleep(usec / 1000); in os_sleep()
49 t->usec = (os_time_t) (tt % 1000000); in os_get_time()
Dos_unix.c25 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument
29 if (usec) in os_sleep()
30 usleep(usec); in os_sleep()
40 t->usec = tv.tv_usec; in os_get_time()
Deloop.c240 timeout->time.usec += usecs; in eloop_register_timeout()
241 while (timeout->time.usec >= 1000000) { in eloop_register_timeout()
243 timeout->time.usec -= 1000000; in eloop_register_timeout()
458 tv.sec = tv.usec = 0; in eloop_run()
461 tv.sec, tv.usec); in eloop_run()
464 _tv.tv_usec = tv.usec; in eloop_run()
Dos_internal.c30 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument
34 if (usec) in os_sleep()
35 usleep(usec); in os_sleep()
45 t->usec = tv.tv_usec; in os_get_time()
Deloop_none.c132 timeout->time.usec += usecs; in eloop_register_timeout()
133 while (timeout->time.usec >= 1000000) { in eloop_register_timeout()
135 timeout->time.usec -= 1000000; in eloop_register_timeout()
326 tv.sec = tv.usec = 0; in eloop_run()
Deloop_win.c255 timeout->time.usec += usecs; in eloop_register_timeout()
256 while (timeout->time.usec >= 1000000) { in eloop_register_timeout()
258 timeout->time.usec -= 1000000; in eloop_register_timeout()
471 tv.sec = tv.usec = 0; in eloop_run()
485 timeout = tv.sec * 1000 + tv.usec / 1000; in eloop_run()
Dos_none.c24 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument
Dwpa_supplicant_i.h379 int sec, int usec);
387 void wpa_supplicant_req_scan(struct wpa_supplicant *wpa_s, int sec, int usec);
Dwpa_supplicant.c493 void wpa_supplicant_req_scan(struct wpa_supplicant *wpa_s, int sec, int usec) in wpa_supplicant_req_scan() argument
520 sec, usec); in wpa_supplicant_req_scan()
522 eloop_register_timeout(sec, usec, wpa_supplicant_scan, wpa_s, NULL); in wpa_supplicant_req_scan()
566 int sec, int usec) in wpa_supplicant_req_auth_timeout() argument
573 "%d usec", sec, usec); in wpa_supplicant_req_auth_timeout()
575 eloop_register_timeout(sec, usec, wpa_supplicant_timeout, wpa_s, NULL); in wpa_supplicant_req_auth_timeout()
/external/qemu/distrib/sdl-1.2.12/src/timer/macos/
DFastTimes.c182 UInt64 usec; in FastMicroseconds() local
191 usec = (double) WideTo64bit(wide) * gScaleUSec + 0.5; in FastMicroseconds()
196 usec = (double) WideTo64bit(wide) * gScaleUSec + 0.5; in FastMicroseconds()
201 usec = (double) WideTo64bit(wide) * gScaleUSec + 0.5; in FastMicroseconds()
206 usec = (double) RTCToNano(wide) * gScaleUSec + 0.5; in FastMicroseconds()
213 usec = WideTo64bit(wide); in FastMicroseconds()
216 return(usec); in FastMicroseconds()
/external/netperf/
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()
226 fprintf(where,"\tsec = %ld usec = %ld\n",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()
Dnetcpu_looper.c499 usec; in calibrate_idle_rate() local
529 usec = time2.tv_usec - time1.tv_usec; in calibrate_idle_rate()
530 elapsed = (float)sec + ((float)usec/(float)1000000.0); in calibrate_idle_rate()
534 fprintf(where,"\tsec = %ld usec = %ld\n",sec,usec); in calibrate_idle_rate()
/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()
Dpicopal.h281 extern void picopal_get_timer(picopal_uint32 * sec, picopal_uint32 * usec);
/external/webkit/V8Binding/v8/benchmarks/
Dbase.js208 var usec = (elapsed * 1000) / n;
209 this.NotifyStep(new BenchmarkResult(benchmark, usec));
/external/ipsec-tools/src/libipsec/
Dpolicy_token.l86 usec {dot}{digit}{1,6}
/external/grub/netboot/
Dotulip.c71 static void udelay(unsigned long usec) { in udelay() argument
73 for (i=((usec*UADJUST)/33)+1; i>0; i--) (void) TULIP_CSR_READ(csr_0); in udelay()
/external/qemu/slirp/
Dmisc.c759 u_sleep(int usec) in u_sleep() argument
767 t.tv_usec = usec * 1000; in u_sleep()
/external/qemu/slirp-android/
Dmisc.c721 u_sleep(int usec)
729 t.tv_usec = usec * 1000;

12