Home
last modified time | relevance | path

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

/libuv/src/unix/
H A Dthread.c776 struct timespec ts; in uv_cond_destroy() local
785 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() local
849 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 …]
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.c128 static void uv__filetime_to_timespec(uv_timespec_t *ts, int64_t filetime) { in uv__filetime_to_timespec() argument
130 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()
/libuv/include/
H A Duv.h1820 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 45 milliseconds