Home
last modified time | relevance | path

Searched refs:mach_time (Results 1 – 8 of 8) sorted by relevance

/xnu-10063.101.15/tests/
H A Dgettimeofday.c31 extern int __gettimeofday_with_mach(struct timeval *, struct timezone *, uint64_t *mach_time);
38 uint64_t mach_time_before, mach_time, mach_time_after;
42 T_ASSERT_POSIX_ZERO(__gettimeofday_with_mach(&gtod_ts, NULL, &mach_time), NULL);
47 T_LOG("%llx > %llx > %llx", mach_time_before, mach_time, mach_time_after);
49 T_ASSERT_LT(mach_time_before, mach_time, NULL);
50 T_ASSERT_GT(mach_time_after, mach_time, NULL);
/xnu-10063.101.15/tests/recount/
H A Drecount_test_utils.h54 uint64_t ns_from_mach(uint64_t mach_time);
H A Drecount_test_utils.c197 ns_from_mach(uint64_t mach_time) in ns_from_mach() argument
201 return mach_time * tbi.numer / tbi.denom; in ns_from_mach()
/xnu-10063.101.15/osfmk/mach/
H A Dmach_private.modulemap27 module mach_time {
H A Dmach.modulemap151 module mach_time {
152 header "mach/mach_time.h"
H A DMakefile140 mach_time.h \
/xnu-10063.101.15/bsd/kern/
H A Dkern_time.c126 uint64_t mach_time; in gettimeofday() local
129 clock_gettimeofday_and_absolute_time(&secs, &usecs, &mach_time); in gettimeofday()
159 error = copyout(&mach_time, uap->mach_absolute_time, sizeof(mach_time)); in gettimeofday()
/xnu-10063.101.15/osfmk/kern/
H A Dclock.c260 uint64_t mach_time; member
693 uint64_t *mach_time) in clock_gettimeofday_and_absolute_time() argument
712 if (mach_time) { in clock_gettimeofday_and_absolute_time()
713 *mach_time = now; in clock_gettimeofday_and_absolute_time()
1068 absolutetime_to_microtime(monotonic_time.mach_time, &sys2, &microsys2); in clock_initialize_calendar()
1287 wake_abs = monotonic_time.mach_time; in clock_wakeup_calendar_legacy()