Searched refs:ts (Results 1 – 7 of 7) sorted by relevance
776 struct timespec ts; in uv_cond_destroy() local785 ts.tv_sec = 0; in uv_cond_destroy()786 ts.tv_nsec = 1; in uv_cond_destroy()788 err = pthread_cond_timedwait_relative_np(cond, &mutex, &ts); in uv_cond_destroy()843 struct timespec ts; in uv_cond_timedwait() local849 ts.tv_sec = timeout / NANOSEC; in uv_cond_timedwait()850 ts.tv_nsec = timeout % NANOSEC; in uv_cond_timedwait()851 r = pthread_cond_timedwait_relative_np(cond, mutex, &ts); in uv_cond_timedwait()860 ts.tv_sec = timeout / NANOSEC; in uv_cond_timedwait()861 ts.tv_nsec = timeout % NANOSEC; in uv_cond_timedwait()[all …]
207 struct timespec ts; in UV_UNUSED() local208 ts.tv_sec = time; in UV_UNUSED()209 ts.tv_nsec = (time - ts.tv_sec) * 1e9; in UV_UNUSED()216 ts.tv_nsec -= ts.tv_nsec % 1000; in UV_UNUSED()218 if (ts.tv_nsec < 0) { in UV_UNUSED()219 ts.tv_nsec += 1e9; in UV_UNUSED()220 ts.tv_sec -= 1; in UV_UNUSED()222 return ts; in UV_UNUSED()241 struct timespec ts[2]; in uv__fs_futime() local1152 struct timespec ts[2]; in uv__fs_utime() local[all …]
124 int uv_clock_gettime(uv_clock_id clock_id, uv_timespec64_t* ts) { in uv_clock_gettime() argument128 if (ts == NULL) in uv_clock_gettime()145 ts->tv_sec = t.tv_sec; in uv_clock_gettime()146 ts->tv_nsec = t.tv_nsec; in uv_clock_gettime()
428 int uv_clock_gettime(uv_clock_id clock_id, uv_timespec64_t* ts) { in uv_clock_gettime() argument432 if (ts == NULL) in uv_clock_gettime()439 ts->tv_sec = t / 1000000000; in uv_clock_gettime()440 ts->tv_nsec = t % 1000000000; in uv_clock_gettime()449 ts->tv_sec = t / 10000000; in uv_clock_gettime()450 ts->tv_nsec = t % 10000000 * 100; in uv_clock_gettime()
128 static void uv__filetime_to_timespec(uv_timespec_t *ts, int64_t filetime) { in uv__filetime_to_timespec() argument130 ts->tv_sec = filetime / TICKS_PER_SEC; in uv__filetime_to_timespec()131 ts->tv_nsec = (filetime % TICKS_PER_SEC) * NSEC_PER_TICK; in uv__filetime_to_timespec()132 if (ts->tv_nsec < 0) { in uv__filetime_to_timespec()133 ts->tv_sec -= 1; in uv__filetime_to_timespec()134 ts->tv_nsec += 1e9; in uv__filetime_to_timespec()
1820 UV_EXTERN int uv_clock_gettime(uv_clock_id clock_id, uv_timespec64_t* ts);
665 .. c:function:: int uv_clock_gettime(uv_clock_id clock_id, uv_timespec64_t* ts)
Completed in 45 milliseconds