Home
last modified time | relevance | path

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

/xnu-11215/bsd/kern/
H A Dkern_clock.c278 long sec, usec; in tvtohz() local
301 usec = tv->tv_usec; in tvtohz()
302 if (usec < 0) { in tvtohz()
304 usec += 1000000; in tvtohz()
308 if (usec > 0) { in tvtohz()
310 usec -= 1000000; in tvtohz()
313 sec, usec); in tvtohz()
317 ticks = (sec * 1000000 + (unsigned long)usec + (tick - 1)) in tvtohz()
321 + ((unsigned long)usec + (tick - 1)) / tick + 1; in tvtohz()
H A Dkern_time.c699 struct itimerval *itp, int usec) in itimerdecr() argument
703 if (itp->it_value.tv_usec < usec) { in itimerdecr()
706 usec -= itp->it_value.tv_usec; in itimerdecr()
712 itp->it_value.tv_usec -= usec; in itimerdecr()
713 usec = 0; in itimerdecr()
723 itp->it_value.tv_usec -= usec; in itimerdecr()
/xnu-11215/tests/
H A Dkqueue_timer_tests.c203 test_interval_kevent(int usec) in test_interval_kevent() argument
213 if (usec < 0) { in test_interval_kevent()
216 expected_pops = test_duration_us / (uint64_t)usec; in test_interval_kevent()
220 usec, expected_pops); in test_interval_kevent()
222 EV_SET64(&kev, 3, EVFILT_TIMER, EV_ADD, NOTE_USECONDS, usec, 0, 0, 0); in test_interval_kevent()
265 T_PASS("%s() usec:%d (saw %lld pops)", __func__, usec, pops); in test_interval_kevent()
278 test_repeating_kevent(int usec) in test_repeating_kevent() argument
287 uint64_t expected_pops = test_duration_us / (uint64_t)usec; in test_repeating_kevent()
289 usec, expected_pops); in test_repeating_kevent()
291 EV_SET64(&kev, 4, EVFILT_TIMER, EV_ADD, NOTE_USECONDS, usec, 0, 0, 0); in test_repeating_kevent()
[all …]
H A Dlockf_basic.c196 const useconds_t usec = rand() & (16384 - 1); in random_pause() local
197 usleep(usec + 1); in random_pause()
/xnu-11215/bsd/net/
H A Ddevtimer.c257 clock_usec_t usec; in devtimer_current_time() local
259 clock_get_system_microtime(&sec, &usec); in devtimer_current_time()
261 tv.tv_usec = usec; in devtimer_current_time()
/xnu-11215/tools/tests/MPMMTest/
H A DREADME10 average message latency (usec): 12.1
/xnu-11215/osfmk/kdp/
H A Dkdp_internal.h125 int usec
/xnu-11215/osfmk/kdp/ml/arm/
H A Dkdp_machdep.c270 kdp_us_spin(int usec) in kdp_us_spin() argument
272 delay(usec / 100); in kdp_us_spin()
/xnu-11215/osfmk/kdp/ml/x86_64/
H A Dkdp_machdep.c312 kdp_us_spin(int usec) in kdp_us_spin() argument
314 delay(usec / 100); in kdp_us_spin()
/xnu-11215/osfmk/kern/
H A Dclock.h337 extern void delay(int usec);
H A Dclock.c1633 int usec) in delay() argument
1635 delay_for_interval((usec < 0)? -usec: usec, NSEC_PER_USEC); in delay()
H A Dtask.c5257 clock_usec_t usec; in _task_fill_times() local
5260 absolutetime_to_microtime(times.rtm_user, &sec, &usec); in _task_fill_times()
5262 user_time->microseconds = usec; in _task_fill_times()
5263 absolutetime_to_microtime(times.rtm_system, &sec, &usec); in _task_fill_times()
5265 sys_time->microseconds = usec; in _task_fill_times()
/xnu-11215/bsd/sys/
H A Dproc_internal.h906 int itimerdecr(struct proc * p, struct itimerval *itp, int usec);
/xnu-11215/bsd/skywalk/nexus/netif/
H A Dnx_netif.c3604 clock_usec_t usec; local
3619 absolutetime_to_microtime(elapsed, &sec, &usec);
3621 ((sec * USEC_PER_SEC + usec) * rate / USEC_PER_SEC);
/xnu-11215/iokit/Kernel/
H A DIOPMrootDomain.cpp7876 clock_usec_t usec; local
7877 clock_get_calendar_microtime(&sec, &usec);