| /xnu-11215/bsd/kern/ |
| H A D | kern_clock.c | 278 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 D | kern_time.c | 699 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 D | kqueue_timer_tests.c | 203 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 D | lockf_basic.c | 196 const useconds_t usec = rand() & (16384 - 1); in random_pause() local 197 usleep(usec + 1); in random_pause()
|
| /xnu-11215/bsd/net/ |
| H A D | devtimer.c | 257 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 D | README | 10 average message latency (usec): 12.1
|
| /xnu-11215/osfmk/kdp/ |
| H A D | kdp_internal.h | 125 int usec
|
| /xnu-11215/osfmk/kdp/ml/arm/ |
| H A D | kdp_machdep.c | 270 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 D | kdp_machdep.c | 312 kdp_us_spin(int usec) in kdp_us_spin() argument 314 delay(usec / 100); in kdp_us_spin()
|
| /xnu-11215/osfmk/kern/ |
| H A D | clock.h | 337 extern void delay(int usec);
|
| H A D | clock.c | 1633 int usec) in delay() argument 1635 delay_for_interval((usec < 0)? -usec: usec, NSEC_PER_USEC); in delay()
|
| H A D | task.c | 5257 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 D | proc_internal.h | 906 int itimerdecr(struct proc * p, struct itimerval *itp, int usec);
|
| /xnu-11215/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif.c | 3604 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 D | IOPMrootDomain.cpp | 7876 clock_usec_t usec; local 7877 clock_get_calendar_microtime(&sec, &usec);
|