Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 7 of 7) sorted by relevance

/libuv/src/unix/
H A Dthread.c755 struct timespec ts; in uv_cond_destroy() local
764 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() local
828 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 …]
H A Dfs.c207 struct timespec ts; in UV_UNUSED() local
208 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() local
1152 struct timespec ts[2]; in uv__fs_utime() local
[all …]
H A Dcore.c124 int uv_clock_gettime(uv_clock_id clock_id, uv_timespec64_t* ts) { in uv_clock_gettime() argument
128 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()
/libuv/src/win/
H A Dutil.c428 int uv_clock_gettime(uv_clock_id clock_id, uv_timespec64_t* ts) { in uv_clock_gettime() argument
432 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()
H A Dfs.c115 static void uv__filetime_to_timespec(uv_timespec_t *ts, int64_t filetime) { in uv__filetime_to_timespec() argument
117 ts->tv_sec = filetime / TICKS_PER_SEC; in uv__filetime_to_timespec()
118 ts->tv_nsec = (filetime % TICKS_PER_SEC) * NSEC_PER_TICK; in uv__filetime_to_timespec()
119 if (ts->tv_nsec < 0) { in uv__filetime_to_timespec()
120 ts->tv_sec -= 1; in uv__filetime_to_timespec()
121 ts->tv_nsec += 1e9; in uv__filetime_to_timespec()
/libuv/include/
H A Duv.h1814 UV_EXTERN int uv_clock_gettime(uv_clock_id clock_id, uv_timespec64_t* ts);
/libuv/docs/src/
H A Dmisc.rst665 .. c:function:: int uv_clock_gettime(uv_clock_id clock_id, uv_timespec64_t* ts)

Completed in 40 milliseconds