| /trueos/sys/sys/mach/ |
| HD | clock_types.h | 90 #ifdef NSEC_PER_SEC 91 #undef NSEC_PER_SEC 101 #define NSEC_PER_SEC 1000000000ll /* nanoseconds per second */ macro 103 ((t)->tv_nsec < 0 || (t)->tv_nsec >= NSEC_PER_SEC) 113 if (((t1)->tv_nsec += (t2)->tv_nsec) >= NSEC_PER_SEC) { \ 114 (t1)->tv_nsec -= NSEC_PER_SEC; \ 124 (t1)->tv_nsec += NSEC_PER_SEC; \
|
| /trueos/sys/ofed/include/linux/ |
| HD | ktime.h | 39 #define NSEC_PER_SEC 1000000000L macro 76 #define KTIME_SEC_MAX (KTIME_MAX / NSEC_PER_SEC) 97 return (ktime_t) { .tv64 = (s64)secs * NSEC_PER_SEC + (s64)nsecs }; in ktime_set() 179 res.tv.nsec += NSEC_PER_SEC; in ktime_sub() 204 if (res.tv.nsec >= NSEC_PER_SEC) in ktime_add() 205 res.tv64 += (u32)-NSEC_PER_SEC; in ktime_add() 286 return (s64) kt.tv.sec * NSEC_PER_SEC + kt.tv.nsec; in ktime_to_ns()
|
| /trueos/lib/libdispatch/dispatch/ |
| HD | time.h | 36 #ifdef NSEC_PER_SEC 37 #undef NSEC_PER_SEC 48 #define NSEC_PER_SEC 1000000000ull macro
|
| /trueos/usr.sbin/notifyd/ |
| HD | timer.c | 297 trigger = dispatch_walltime(NULL, (t->start - now) * NSEC_PER_SEC); in timer_oneshot() 298 dispatch_source_set_timer(t->t_src, trigger, NSEC_PER_SEC, 0); in timer_oneshot() 356 trigger = dispatch_walltime(NULL, (t->start - now) * NSEC_PER_SEC); in timer_clock() 357 dispatch_source_set_timer(t->t_src, trigger, freq_sec * NSEC_PER_SEC, 0); in timer_clock() 404 trigger = dispatch_walltime(NULL, (next - now) * NSEC_PER_SEC); in timer_calendar() 405 dispatch_source_set_timer(t->t_src, trigger, NSEC_PER_SEC, 0); in timer_calendar() 425 …ch_source_set_timer(t->t_src, dispatch_walltime(NULL, (x - _now) * NSEC_PER_SEC), NSEC_PER_SEC, 0); in timer_calendar()
|
| /trueos/lib/libdispatch/src/ |
| HD | time.c | 30 dispatch_assert(sizeof(NSEC_PER_SEC) == 8); in _dispatch_get_nanoseconds() 32 return (uint64_t)now.tv_sec * NSEC_PER_SEC + in _dispatch_get_nanoseconds() 63 _dispatch_host_time_data.frac = (long double)NSEC_PER_SEC / in _dispatch_get_host_time_init()
|
| HD | semaphore.c | 334 _timeout.tv_sec = (typeof(_timeout.tv_sec))(nsec / NSEC_PER_SEC); in _dispatch_semaphore_wait_slow() 335 _timeout.tv_nsec = (typeof(_timeout.tv_nsec))(nsec % NSEC_PER_SEC); in _dispatch_semaphore_wait_slow() 346 _timeout.tv_sec = (typeof(_timeout.tv_sec))(nsec / NSEC_PER_SEC); in _dispatch_semaphore_wait_slow() 347 _timeout.tv_nsec = (typeof(_timeout.tv_nsec))(nsec % NSEC_PER_SEC); in _dispatch_semaphore_wait_slow() 559 _timeout.tv_sec = (typeof(_timeout.tv_sec))(nsec / NSEC_PER_SEC); in _dispatch_group_wait_slow() 560 _timeout.tv_nsec = (typeof(_timeout.tv_nsec))(nsec % NSEC_PER_SEC); in _dispatch_group_wait_slow() 571 _timeout.tv_sec = (typeof(_timeout.tv_sec))(nsec / NSEC_PER_SEC); in _dispatch_group_wait_slow() 572 _timeout.tv_nsec = (typeof(_timeout.tv_nsec))(nsec % NSEC_PER_SEC); in _dispatch_group_wait_slow()
|
| HD | internal.h | 286 #ifdef NSEC_PER_SEC 287 #undef NSEC_PER_SEC 295 #define NSEC_PER_SEC 1000000000ull macro
|
| HD | queue.c | 3139 if (leeway > 60 * NSEC_PER_SEC) leeway = 60 * NSEC_PER_SEC; in dispatch_after_f() 4123 const int64_t timeout = 5ull * NSEC_PER_SEC; in _dispatch_worker_thread()
|
| HD | source.c | 1288 #define NSEC_PER_FRAME (NSEC_PER_SEC/60) in _dispatch_source_set_interval()
|
| /trueos/sys/dev/drm2/ |
| HD | drm_os_freebsd.c | 39 #define NSEC_PER_SEC 1000000000L macro 44 return ((int64_t)tv->tv_sec * NSEC_PER_SEC) + in timeval_to_ns() 60 tv.tv_sec = nsec / NSEC_PER_SEC; in ns_to_timeval() 61 rem = nsec % NSEC_PER_SEC; in ns_to_timeval() 64 rem += NSEC_PER_SEC; in ns_to_timeval()
|
| /trueos/usr.bin/notifyutil/ |
| HD | notifyutil.c | 443 …ource_set_timer(timer_src, dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC / 10), NSEC_PER_SEC / 10,… in do_register() 463 …ource_set_timer(timer_src, dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC / 10), NSEC_PER_SEC / 10,… in do_register()
|
| /trueos/lib/libdispatch/src/shims/ |
| HD | time.h | 131 return (ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec); in _dispatch_absolute_time()
|
| /trueos/lib/libdispatch/private/ |
| HD | private.h | 131 dispatch_time(DISPATCH_TIME_NOW, (t) * NSEC_PER_SEC)
|
| /trueos/crypto/heimdal/kdc/ |
| HD | announce.c | 105 t = dispatch_time(DISPATCH_TIME_NOW, 5ull * NSEC_PER_SEC); in retry_timer() 106 dispatch_source_set_timer(s, t, 0, NSEC_PER_SEC); in retry_timer()
|
| /trueos/crypto/heimdal/lib/ipc/ |
| HD | common.c | 129 timeout = (uint64_t)t * NSEC_PER_SEC; in heim_ipc_semaphore_wait()
|
| HD | server.c | 75 timeoutvalue * NSEC_PER_SEC), in set_timer() 76 timeoutvalue * NSEC_PER_SEC, 1000000); in set_timer()
|
| /trueos/usr.sbin/asl/ |
| HD | bsd_out.c | 511 …dispatch_source_set_timer(r->dup_timer, dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC * global.bsd… in _bsd_send() 736 …mer(bsd_idle_timer, dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC * CLOSE_ON_IDLE_SEC), NSEC_PER_S… in bsd_out_init()
|
| HD | syslogd.c | 734 … dispatch_time(DISPATCH_TIME_NOW, global.mark_time * NSEC_PER_SEC), global.mark_time * NSEC_PER_SE… in main()
|
| HD | asl_action.c | 1370 …dispatch_source_set_timer(checkpoint_timer, dispatch_walltime(&midnight, 0), NSEC_PER_SEC * SEC_PE… in _start_cycling() 1515 …dispatch_source_set_timer(f_data->dup_timer, dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC * globa… in _act_file_final()
|
| HD | daemon.c | 871 …dispatch_after(dispatch_time(DISPATCH_TIME_NOW, delta * NSEC_PER_SEC), dispatch_get_main_queue(), … in trigger_aslmanager()
|
| HD | dbserver.c | 552 …dispatch_source_set_timer(timer_src, dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC / 2), DISPATCH_… in db_save_message()
|
| /trueos/lib/libmach/mach/ |
| HD | mach_misc.c | 195 return (tp.tv_sec*NSEC_PER_SEC + tp.tv_nsec); in mach_absolute_time()
|
| /trueos/sys/ofed/drivers/infiniband/ulp/sdp/ |
| HD | sdp_dbg.h | 58 return tv.tv_sec * NSEC_PER_SEC + tv.tv_nsec; in current_nsec()
|
| /trueos/lib/libasl/ |
| HD | asl_fd.c | 187 dispatch_group_wait(read_source_group, dispatch_time(DISPATCH_TIME_NOW, 3LL * NSEC_PER_SEC)); in redirect_atexit()
|
| /trueos/sbin/launchd/ |
| HD | core.c | 3680 job_log(j, LOG_PERF, "Last instance wall time: %06f", (double)rt / (double)NSEC_PER_SEC); in job_reap() 3752 td_sec = td / NSEC_PER_SEC; in job_reap() 3753 td_usec = (td % NSEC_PER_SEC) / NSEC_PER_USEC; in job_reap() 4245 td /= NSEC_PER_SEC; in job_callback_timer() 4468 td /= NSEC_PER_SEC; in job_start()
|