Searched refs:NSEC_PER_SEC (Results 1 – 14 of 14) sorted by relevance
33 #define NSEC_PER_SEC 1000000000L macro57 tv.tv_sec = nsec / NSEC_PER_SEC; in ns_to_timeval()58 rem = nsec % NSEC_PER_SEC; in ns_to_timeval()61 rem += NSEC_PER_SEC; in ns_to_timeval()70 return ((int64_t)tv->tv_sec * NSEC_PER_SEC) + in timeval_to_ns()97 return ((ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec); in timespec_to_ns()112 ts.tv_sec = nsec / NSEC_PER_SEC; in ns_to_timespec()113 rem = nsec % NSEC_PER_SEC; in ns_to_timespec()116 rem += NSEC_PER_SEC; in ns_to_timespec()
40 #define KTIME_SEC_MAX (KTIME_MAX / NSEC_PER_SEC)113 ktime_t retval = {(s64) secs * NSEC_PER_SEC + (s64) nsecs}; in ktime_set()
212 return ((uint64_t)ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec); in local_clock()
35 #define NSEC_PER_SEC 1000000000L macro40 return ((int64_t)tv->tv_sec * NSEC_PER_SEC) + in timeval_to_ns()56 tv.tv_sec = nsec / NSEC_PER_SEC; in ns_to_timeval()57 rem = nsec % NSEC_PER_SEC; in ns_to_timeval()60 rem += NSEC_PER_SEC; in ns_to_timeval()
86 return (((hrtime_t)ts.tv_sec * NSEC_PER_SEC) + ts.tv_nsec); in gethrtime()
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()
129 timeout = (uint64_t)t * NSEC_PER_SEC; in heim_ipc_semaphore_wait()
75 timeoutvalue * NSEC_PER_SEC), in set_timer()76 timeoutvalue * NSEC_PER_SEC, 1000000); in set_timer()
123 delta.tv_sec * NSEC_PER_SEC + delta.tv_nsec + (NSEC_PER_USEC / 2); in measure_clock()
58 return tv.tv_sec * NSEC_PER_SEC + tv.tv_nsec; in current_nsec()
316 rec->time_to_run = ktime_get_ns() + 1 * NSEC_PER_SEC; in aliasguid_query_handler()423 resched_delay_sec * NSEC_PER_SEC; in aliasguid_query_handler()717 div_u64((low_record_time - curr_time), NSEC_PER_SEC); in get_low_record_time_index()
131 t->sec = nano / NSEC_PER_SEC; in os_get_reltime()132 t->usec = (nano - (((uint64_t) t->sec) * NSEC_PER_SEC)) / NSEC_PER_USEC; in os_get_reltime()