Searched refs:ts (Results 1 – 7 of 7) sorted by relevance
755 struct timespec ts; in uv_cond_destroy() local764 ts.tv_sec = 0; in uv_cond_destroy()765 ts.tv_nsec = 1; in uv_cond_destroy()767 err = pthread_cond_timedwait_relative_np(cond, &mutex, &ts); in uv_cond_destroy()822 struct timespec ts; in uv_cond_timedwait() local828 ts.tv_sec = timeout / NANOSEC; in uv_cond_timedwait()829 ts.tv_nsec = timeout % NANOSEC; in uv_cond_timedwait()830 r = pthread_cond_timedwait_relative_np(cond, mutex, &ts); in uv_cond_timedwait()839 ts.tv_sec = timeout / NANOSEC; in uv_cond_timedwait()840 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() local1141 struct timespec ts[2]; in uv__fs_utime() local[all …]
114 int uv_clock_gettime(uv_clock_id clock_id, uv_timespec64_t* ts) { in uv_clock_gettime() argument118 if (ts == NULL) in uv_clock_gettime()135 ts->tv_sec = t.tv_sec; in uv_clock_gettime()136 ts->tv_nsec = t.tv_nsec; in uv_clock_gettime()
434 int uv_clock_gettime(uv_clock_id clock_id, uv_timespec64_t* ts) { in uv_clock_gettime() argument438 if (ts == NULL) in uv_clock_gettime()445 ts->tv_sec = t / 1000000000; in uv_clock_gettime()446 ts->tv_nsec = t % 1000000000; in uv_clock_gettime()455 ts->tv_sec = t / 10000000; in uv_clock_gettime()456 ts->tv_nsec = t % 10000000 * 100; in uv_clock_gettime()
103 static void uv__filetime_to_timespec(uv_timespec_t *ts, int64_t filetime) { in uv__filetime_to_timespec() argument105 ts->tv_sec = (long) (filetime / (10 * MILLION)); in uv__filetime_to_timespec()106 ts->tv_nsec = (long) ((filetime - ts->tv_sec * 10 * MILLION) * 100U); in uv__filetime_to_timespec()107 if (ts->tv_nsec < 0) { in uv__filetime_to_timespec()108 ts->tv_sec -= 1; in uv__filetime_to_timespec()109 ts->tv_nsec += 1e9; in uv__filetime_to_timespec()
1785 UV_EXTERN int uv_clock_gettime(uv_clock_id clock_id, uv_timespec64_t* ts);
624 .. c:function:: int uv_clock_gettime(uv_clock_id clock_id, uv_timespec64_t* ts)
Completed in 44 milliseconds