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
1141 struct timespec ts[2]; in uv__fs_utime() local
[all …]
H A Dcore.c114 int uv_clock_gettime(uv_clock_id clock_id, uv_timespec64_t* ts) { in uv_clock_gettime() argument
118 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()
/libuv/src/win/
H A Dutil.c434 int uv_clock_gettime(uv_clock_id clock_id, uv_timespec64_t* ts) { in uv_clock_gettime() argument
438 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()
H A Dfs.c103 static void uv__filetime_to_timespec(uv_timespec_t *ts, int64_t filetime) { in uv__filetime_to_timespec() argument
105 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()
/libuv/include/
H A Duv.h1785 UV_EXTERN int uv_clock_gettime(uv_clock_id clock_id, uv_timespec64_t* ts);
/libuv/docs/src/
H A Dmisc.rst624 .. c:function:: int uv_clock_gettime(uv_clock_id clock_id, uv_timespec64_t* ts)

Completed in 44 milliseconds